From fe425bf48c3ecd5e3962c1ddffc224e404949de8 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Mon, 14 Oct 2024 08:52:24 +0000 Subject: [PATCH] Updating ComputeExamples.md --- ComputeExamples.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ComputeExamples.md b/ComputeExamples.md index 45f4e82df..8440582f5 100644 --- a/ComputeExamples.md +++ b/ComputeExamples.md @@ -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 @@ -318,8 +322,7 @@ async function createAsset( const bundleNFT = await nftFactory.createNftWithDatatoken( nftParamsAsset, - datatokenParams, - false + datatokenParams ) const trxReceipt = await bundleNFT.wait()