Lesson 5 :Frist deploy:node ploy.js in wsl #3236
-
I have changed Ganache Host Name to vEthernet (WSL),but it also have problem. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@wangwang00 : In your line : 10 , You didn't add provider after your private key,
It should fix your issue! Let me know, If your issue gets resolved! |
Beta Was this translation helpful? Give feedback.
-
I also have this program in WSL, can you teach me how to resolve the problem, thank you very much! |
Beta Was this translation helpful? Give feedback.
-
I also have this program in WSL, can you teach me how to resolve the problem, thank you very much! |
Beta Was this translation helpful? Give feedback.
@wangwang00 : In your line : 10 , You didn't add provider after your private key,
Change the line : 10 from this :
let wallet = new ethers.Wallet("0x000000000**YourPrivateKey**00000000000")
To this :
let wallet = new ethers.Wallet("0x000000000**YourPrivateKey**00000000000", provider)
It should fix your issue!
Let me know, If your issue gets resolved!