Skip to content

Lesson 5: Error: invalid hexlify value #2262

Answered by othaime-en
TravCrypto asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @TravCrypto the error is on line 12. The private key and the object provider are two separate things and should not be inside the same quote. only the private key is a string not the provider object. So the "" should start and end with the private key alone.
e.g. It should be const wallet = new ethers.Wallet( "30fc.......8fc", provider)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@TravCrypto
Comment options

@othaime-en
Comment options

@TravCrypto
Comment options

@othaime-en
Comment options

Answer selected by TravCrypto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants