Skip to content

Lesson 5: ethers.js Simple Storage - Error: cannot estimate gas #1193

Answered by krakxn
BentCrypto asked this question in Q&A
Discussion options

You must be logged in to vote

Error here:

const binary = fs.readFileSync(
        "./SimpleStorage_sol_SimpleStorage.bin",
        "utf8"
    )

Also, add this after the transactionReceipt:

console.log(`Contract deployed to ${contract.address}`)

Hope this helps!

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@krakxn
Comment options

@BentCrypto
Comment options

@krakxn
Comment options

@BentCrypto
Comment options

@krakxn
Comment options

Answer selected by BentCrypto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants