Lesson5 @ 8:00:00 - Error / contract.address #5959
-
Hello, and thank you in advance for your help.
I have tried a different account and made sure that there is testnet ETH in the wallet I am using. const provider = new ethers.JsonRpcProvider(process.env.RPC_URL)
const wallet = new ethers.Wallet(process.env.PRIVATE_KEY, provider) Thank you guys in advance for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Ok I figured one problem out and it of course lead me to the next one, I guess some function calls are outdated, I fixed the error above by using : await contract.deploymentTransaction().wait(1) instead of: await contract.deployTransaction.wait(1) for now, I have just commented out the section: console.log(`Contract Address: ${contract.address}`) The code will not let me call the address in this way, I have not found an alternative yet. |
Beta Was this translation helpful? Give feedback.
You are using
ethersV6
instead ofcontract.address
, usecontract.target
orawait contract.getAddress()
like this
or