Skip to content

Commit

Permalink
Updating ComputeExamples.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Oct 8, 2024
1 parent 69e5659 commit ab0cafb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ComputeExamples.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,11 @@ async function createAsset(
) {
const nft = new Nft(owner, (await owner.provider.getNetwork()).chainId)

const nftFactory = new NftFactory(addresses.ERC721Factory, owner)
const nftFactory = new NftFactory(
addresses.ERC721Factory,
owner,
await owner.getChainId()
)

const chain = (await owner.provider.getNetwork()).chainId

Expand All @@ -318,8 +322,7 @@ async function createAsset(

const bundleNFT = await nftFactory.createNftWithDatatoken(
nftParamsAsset,
datatokenParams,
false
datatokenParams
)

const trxReceipt = await bundleNFT.wait()
Expand Down

0 comments on commit ab0cafb

Please sign in to comment.