How to import utils from @ethersproject namespace? #2230
Unanswered
mesozoic-technology
asked this question in
Q&A
Replies: 1 comment
-
There are various kinds of utils available in separate packages. You can find a list over here. Examples: import { isHexString } from '@ethersproject/bytes';
import { hashMessage } from '@ethersproject/hash'; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to import the utils but if I do it through the main package like
import { utils } from 'ethers'
then my project won't compile due to types.I'm importing from a few other things using the
@ethersproject
namespace.From where in that namespace can I import utils?
Beta Was this translation helpful? Give feedback.
All reactions