Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token creation error: cannot estimate gas; transaction may fail or may require manual gas limit #3

Open
secretshardul opened this issue Mar 23, 2021 · 1 comment

Comments

@secretshardul
Copy link

I get this error when I try to create a new token. It happens on http://nft-minter.herokuapp.com/ as well as on my local deployment.

How to reproduce

  • Open minter frontend
  • Create new token: Happens with both the contract owner address or personal wallet address.

image

Error message

cannot estimate gas; transaction may fail or may require manual gas limit (error={"code":-32000,"message":"execution reverted"}, method="estimateGas", transaction={"from":"0x549deAF2d8819B49Bae0C4d43Da90D65dCBF29C9","to":"0xd7E37BBA4eF7e2f11d12df84D9635fe5c4b91255","data":"0xe38e3b24000000000000000000000000243566e830705ce95b09ae66705c8b291b3333100000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.0.24)

Current environment

  • Google chrome 89.0.4389.90
  • Metamask 9.2.0
@alisidaniel
Copy link

Here you could try this since you're using hardhart
networks: { hardhat: {}, rinkeby: { url: 'API_KEY', accounts: [0x00], gas: 2100000, gasPrice: 8000000000 }, }

I hope this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants