-
Notifications
You must be signed in to change notification settings - Fork 394
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
Predefined gas settings? #62
Comments
Hi @h0rizons, what do you mean by "stuck"? was it set to a low gas setting so you had to wait more than expected? Is it still stuck? Dit it fail? The CLI uses your provider (e.g. Infura) in order to estimate the gas fee, so the default values should be fine as long as you don't get stuck in the middle of a gas war for some reason. If you really want to, you can change the settings manually following the Hardhat documentation but it's not recommended. Here is where you can customize those settings in your project: nft-erc721-collection/smart-contract/hardhat.config.ts Lines 115 to 129 in a43b21e
Let me know if it helps. |
When I did 'yarn presale-open' the transaction to set the cost was stuck pending for a few hours. I sent myself a 0 ETH transaction with the same nonce and got it cleared - I did push that command right as ETH was dropping and gas was shooting up, so I think that might have been the issue. I wanted to take a second to thank you for all your amazing work, all of the responses & time that you've put into this for the community. I really really appreciate it. |
@h0rizons I see, unfortunately gas wars are pretty bad! 😞 If you are wondering, if you already deployed your contract you should still be able to take advantage of the new version, try following these steps:
Then you should be able to use all the new features while still using the old Solidity code. I hope this helps. |
Thank you so much! I also just wanted to let you know that I successfully used the ERC-721A beta build that you had posted (I think #29?) before 2.0 got pushed today. Deployed to mainnet, verified, successful pre-sale, public-sale, and reveal. 2500/3000. |
I'm very happy to hear that @h0rizons. I wish you the best of luck with your collection! 😃 |
I had a txn get stuck when running
yarn presale-open --network mainnet
and was wondering if theres any way I can change the gas used when executing the script commands? I tried looking in the hardhat config file but didn't see anything.The text was updated successfully, but these errors were encountered: