TypeError: Cannot read properties of undefined (reading 'toHexString') #2258
Unanswered
sardarahmedkhan505
asked this question in
Q&A
Replies: 1 comment
-
Entire code please; also, the complete terminal (for the error). |
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 am facing typeError using my PRIVATE_KEY_PASSWORD in the Wallet.fromEncryptedJsonSync()
This is the code : >
const encryptedKeyJSON = fs.readFileSync("./encryptedKey.json", "utf8"); let wallet = new ethers.Wallet.fromEncryptedJsonSync( encryptedKeyJSON, process.env.PRIVATE_KEY_PASSWORD );
Beta Was this translation helpful? Give feedback.
All reactions