diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d0217de..f348e40d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -186,7 +186,6 @@ jobs: - uses: actions/download-artifact@v4 with: name: coverage-integration - - uses: paambaati/codeclimate-action@v2.7.5 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} diff --git a/package-lock.json b/package-lock.json index e836e09f..ed3f537a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7954,6 +7954,7 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], + "license": "MIT", "dependencies": { "@ethersproject/abi": "5.7.0", "@ethersproject/abstract-provider": "5.7.0", diff --git a/src/contracts/NFTFactory.ts b/src/contracts/NFTFactory.ts index 036b8c1c..67cbba59 100644 --- a/src/contracts/NFTFactory.ts +++ b/src/contracts/NFTFactory.ts @@ -67,23 +67,27 @@ export class NftFactory extends SmartContractWithAddress { ) if (estimateGas) return estGas // Invoke createToken function of the contract - const tx = await sendTx( - estGas, - this.signer, - this.config?.gasFeeMultiplier, - this.contract.deployERC721Contract, - nftData.name, - nftData.symbol, - nftData.templateIndex, - ZERO_ADDRESS, - ZERO_ADDRESS, - nftData.tokenURI, - nftData.transferable, - nftData.owner - ) - const trxReceipt = await tx.wait() - const events = getEventFromTx(trxReceipt, 'NFTCreated') - return events.args[0] + try { + const tx = await sendTx( + estGas, + this.signer, + this.config?.gasFeeMultiplier, + this.contract.deployERC721Contract, + nftData.name, + nftData.symbol, + nftData.templateIndex, + ZERO_ADDRESS, + ZERO_ADDRESS, + nftData.tokenURI, + nftData.transferable, + nftData.owner + ) + const trxReceipt = await tx.wait() + const events = getEventFromTx(trxReceipt, 'NFTCreated') + return events.args[0] + } catch (e) { + console.error(`Creation of AccessList failed: ${e}`) + } } /**