DEV Community

Discussion on: Deploy NFTs with Truffle, IPFS OpenSea & Polygon

Collapse
 
artiface profile image
artiface

Thanks for this great post. I've been trying to work through it, but the very last step of node scripts/mint.js fails. It says minted, then says 'gas required exceeds allowance (0)'.

I'm not sure where to set the gas allowance? it looks like there is no allowance set. I did set gas in the truffle-config.js
mumbai: {
provider: function () {
return new HDWalletProvider(MNEMONIC, https://rpc-mumbai.maticvigil.com/v1/${API_KEY});
},
network_id: 80001,
gas: 5000000,
gasPrice: 5000000000,
confirmations: 2,
skipDryRun: true,
},

but that did not seem to resolve. How do I set the gas allowance so I can mint the token? Thanks!

Collapse
 
yournewempire profile image
Archie Smyth

Hey. Have you tried running the script again? With gas and gas price on 'auto' string might work. Im not sure about this error message either unfortunately.