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()