TypeError: Cannot read properties of undefined (reading 'toHexString') #2329
supaari89
started this conversation in
Show and tell
Replies: 2 comments
-
I just ran into this, but I'm getting the problem. Tried starting Ganache but it says "The hostname is not local address; only use hostnames/IPs associated with this machine". It's been a long time since I took a time of the tutorial, feels like I should go back some time back and start over from maybe Ganache lesson unless I get help with this 2 issues. |
Beta Was this translation helpful? Give feedback.
0 replies
-
In my case the document was out of the folder where deploy.js was. Try that too |
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
-
`solidity
Not a question but wanting to share idea for eliminating error.
This is chap 5 encrypting key. https://youtu.be/gyMwXuJrbJQ?t=27913 , time stamp 7:45:13
I got TypeError: Cannot read properties of undefined (reading 'toHexString')
TypeError: Cannot read properties of undefined (reading 'toHexString') at isHexable (/mnt/c/Users/0veni/OneDrive/Desktop/ether-simple-storage/node_modules/@ethersproject/bytes/lib/index.js:9:21) at hexlify (/mnt/c/Users/0veni/OneDrive/Desktop/ether-simple-storage/node_modules/@ethersproject/bytes/lib/index.js:175:9) at new SigningKey (/mnt/c/Users/0veni/OneDrive/Desktop/ether-simple-storage/node_modules/@ethersproject/signing-key/lib/index.js:20:82) at new Wallet (/mnt/c/Users/0veni/OneDrive/Desktop/ether-simple-storage/node_modules/@ethersproject/wallet/lib/index.js:120:36) at main (/mnt/c/Users/0veni/OneDrive/Desktop/ether-simple-storage/encryptkey.js:6:18) at Object.<anonymous> (/mnt/c/Users/0veni/OneDrive/Desktop/ether-simple-storage/encryptkey.js:15:1) at Module._compile (node:internal/modules/cjs/loader:1103:14)
after closing and reopening Ganache without saving workspace after encrypting private address and PRIVATE_KEY_PASSWORD.
So save your workspace on Ganache before turning off to avoid surprise the next day when reopening.
Let me know if this wasn't appropriate way of presenting or the appropriate space in which this entry was presented
Beta Was this translation helpful? Give feedback.
All reactions