Replies: 1 comment
-
You have to pass a signer as the third argument to ContractFactory. factory = new ethers.ContractFactory(abi, bytecode, signer); To get signer from ganache: docs |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following:
My contract constructor is:
But I see the following error in the browser where I'm running the ethers.js code:
I'm running ganache and I want the contract to be deployed on ganache.
How to fix this?
Beta Was this translation helpful? Give feedback.
All reactions