Failed to mint more than 10 NFTs in a single tx

I am using this NFT example repo to mint NFTs. However, when I try to bulk mint more than 10 NFTs, I get this error even though the minter address has enough coins:

Error: Execution of the script associated with contract fuel1j9gzwg0tjdza6rpmufq5n99zk507wq4stnqnjg4vsmfcgsmeek5qcpa869 resulted in a non-zero exit code: 2.

{
  "doc": "https://docs.rs/fuel-asm/latest/fuel_asm/enum.PanicReason.html#variant.OutOfGas",
  "reason": "OutOfGas"
}

It only mints up to 9 NFTs in a single tx.

Here are the toolchain versions:

**forc** : 0.49.1
- **forc-client**
- **forc-deploy** : 0.49.1
- **forc-run** : 0.49.1
- **forc-crypto** : 0.49.1
- **forc-doc** : 0.49.1
- **forc-explore** : 0.28.1
- **forc-fmt** : 0.49.1
- **forc-lsp** : 0.49.1
- **forc-tx** : 0.49.1
- **forc-wallet** : 0.4.2
**fuel-core** : 0.22.0
**fuel-core-keygen** : 0.22.0
**fuels versions**
--------------
**forc** : 0.54.0
**forc-wallet** : 0.54.0

TS SDK version: 0.75.0

1 Like

some time this arroe coming maybe network issue

Hello @fsociety have you tried increasing the gas limit on your transaction?