opensea-creatures icon indicating copy to clipboard operation
opensea-creatures copied to clipboard

Running out of gas trying to deploy to mainnet.

Open clonetwin26 opened this issue 3 years ago • 2 comments

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.

clonetwin26 avatar Sep 28 '21 02:09 clonetwin26

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 avatar Sep 28 '21 18:09 clonetwin26

@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?

nsmet avatar Dec 10 '21 19:12 nsmet