Newbie to Ethereum NFT contract deployment here. So please bear with my questions. I am trying to deploy a ERC-721 contract to ETH Mainnet and I have 0.285 ETH in my wallet. But I am still getting insufficient funds error. The contract is not very complicated and we were able to deploy same 3 months ago.
Am I making any rookie mistake in setting these values in my truffle_config?
Error: "Migrations" could not deploy due to insufficient funds
- Account: 0x714D……….
- Balance: 285585911447858493 wei
- Message: insufficient funds for gas * price + value — Reason given: Custom error (could not decode).
Command: truffle deploy –network mainnet
truffle-config.js:
mainnet: {
provider: () => new HDWalletProvider(mnemonic, `https://mainnet.infura.io/v3/${INFURA_APP_KEY}`),
network_id: 1,
confirmations: 2,
timeoutBlocks: 200,
gasPrice: 22000000000, //22 gwei
gas: 59000000000,//59 gwei,
},
Thanks!