Skip to content

Lesson 5: Can't Deploy Running into Issue #5648

Answered by TEE2DWHY
KarthickSakthi asked this question in Q&A
Discussion options

You must be logged in to vote
//to fix this issue simply specify a gas limit

const deploymentOptions = {
gasLimit: 2000000
}

const contract = await contractFactory.deploy(deploymentOptions)

this error is because the estimateGas method cannot accurately determine the gas required for the transaction., manually specifying the gas limit when using genache can fix this. Hope this helps..

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@KarthickSakthi
Comment options

@lxt520926
Comment options

@KarthickSakthi
Comment options

@lxt520926
Comment options

Comment options

You must be logged in to vote
2 replies
@KarthickSakthi
Comment options

@alfaqi
Comment options

Comment options

You must be logged in to vote
4 replies
@KarthickSakthi
Comment options

@TEE2DWHY
Comment options

@KarthickSakthi
Comment options

@r-bytes
Comment options

Answer selected by KarthickSakthi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants