-
Notifications
You must be signed in to change notification settings - Fork 150
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
Error: cannot estimate gas; transaction may fail or may require manual gas limit #20
Comments
problem update during my search find next code so i try use same theory to set the gaslimit and final deploy code as next so i edit the code again as next:
|
update add problem to stackoverflow and stackexchange |
There is a good chance this is just too big :/ Could you test deploying an NFT with that much data on something like Remix? |
I just search for Remix and find it. when try use it find it is not Operation system simulation, so i will start learn it first and then try use it. (this my first tutorial, so i only know harhat) |
a- project that i target and setting:
1- i use the (SVGNFT.sol and 01_Deploy_SVGNFT.js) version, from YouTube video (as i do not need the random).
2- i use the (hardhat.config.js) for same version from YouTube video, at the end i add the hardhat.config.js and helper-hardhat-config.js code (same version of YouTube).
b- the main problem:
the code is work and every thing is good as the svg file size less than 27Kb. but when the svg file more than 27kb it deploy the contract but can not deploy (upload, deal, mint) the svg file (tokenuri) and return next error message:
c- what i try until now and the results:
1- try set the gas limit in "hardhat.config" but did not make any effect.
2- in "01_Deploy_SVGNFT" add gaslimit to tx, so the code line look like next:
3- in "01_Deploy_SVGNFT" add gaslimit to tx, so the code line look like next:
so hope help me find how set the gas limit manually for the first smart contract(SVGNFT.sol) without face this problem when use polygon test or main network.
thanks in advanced
The text was updated successfully, but these errors were encountered: