Open MielkeDaniel opened 1 year ago
Could you see this?
https://github.com/PatrickAlphaC/ethers-simple-storage-fcc/pull/67
const ether = require("ethers");
async function main() {
const provider = new ether.JsonRpcProvider("http://127.0.0.1:7545");
}
"dependencies": {
"ethers": "^6.1.0",
"solc": "^0.8.19"
},
@Mielke
cit. all the ethers.providers.*
are being moved to ethers.*
This works for ethers v 6.2.0:
let provider = new ethers.getDefaultProvider("http://127.0.0.1:7545")
const deploymentReceipt = await contract.deployTransaction.wait(1)
should be changed into
const txResponse = await contract.deploymentTransaction().wait()
Also console.log(`Contract deployed to ${contract.address}`)
changed toconsole.log(`Contract deployed to ${await contract.getAddress()}`)
Underlines "providers"-keyword with the following error:
Any idea why? Buggy ethers version? Im using ^6.1.0