Skip to content

Commit

Permalink
Merge branch 'main' into issue-1841-pub-flow
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Sep 24, 2024
2 parents 6ea2ea2 + eb6d84e commit 7da351b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 21 additions & 17 deletions src/contracts/NFTFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,27 @@ export class NftFactory extends SmartContractWithAddress {
)
if (estimateGas) return <G extends false ? string : BigNumber>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}`)
}
}

/**
Expand Down

0 comments on commit 7da351b

Please sign in to comment.