opensea-creatures
opensea-creatures copied to clipboard
Running out of gas trying to deploy to mainnet.
Following: Deploying to the mainnet Ethereum network. by running: yarn truffle migrate --network live.
I get about 60 blocks in and then am told: "Migrations" ran out of gas (using a value you set in your network config or deployment parameters.)
- Block limit: 30087799 (0x1cb1a77)
- Gas sent: 25000000 (0x17d7840)
No amount of toggling settings seems to work and I am so close.
So the settings in the repo have a gas price that is way too low. Trying to mint your contract for 5 gwei will leave you starved out of minting transactions. To fix this you have to send a transaction to yourself with a nonce matching the hanging transaction to cancel it and offer a higher gas price that matches what is being offered that day. Please update your docs on deploying to mainnet
@clonetwin26 could you explain this a bit, I'm hitting the exact same issue. To be honest I'm very new and don't have a lot of experience. What did you do to solve the issue?