Lesson 5: Error: invalid hexlify value #2262
-
Hello all, I recently ran into an issue when going through the course. To preface this, I am a beginner at programming, so I apologize in advance for my lack of knowledge/understanding. I am at https://youtu.be/gyMwXuJrbJQ?t=25651 in the video, where Patrick instructs you to run node deploy.js.
This is the error message that I receive: Error: invalid hexlify value (argument="value", value="30fc1e52a317402fcad94e13ed9a6b2c887749eedf27579db8805b2bc6b968fc, provider", code=INVALID_ARGUMENT, version=bytes/5.7.0) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @TravCrypto the error is on line 12. The private key and the object |
Beta Was this translation helpful? Give feedback.
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)