Lesson5 : Getting a error while trying to deploy my contract #216
Replies: 3 comments
-
Hi! From the error you are showing us said: that in the contract that you named "Deploy.js" on the line number 8 there is an error. |
Beta Was this translation helpful? Give feedback.
-
@yadavkundan516601 try this also check the spacing you use in your code such as here and here as well as space between parameters Syntax is very strict, so just 1 thing out of place can throw the entire code off. Also, in case you run into trouble with RPC make sure you select vWSL RPC in ganache server and make sure you are on 8545 instead of 7545. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
you are not getting the result because you are not using an object of ContractFactory but you're using ContractFactory in itself to deploy it. If you intend to keep doing it that way, write ContractFactor(abi,bytecode,wallet) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I`m getting a error TypeError: ethers.wa is not a constructor
at main (/home/yaduvanshi/Desktop/Block-chain/Contract/Deploy.js:8:18)
at Object. (/home/yaduvanshi/Desktop/Block-chain/Contract/Deploy.js:19:1)
While i am trying to deploy my first contract using js
Beta Was this translation helpful? Give feedback.
All reactions