git.delta.rocks / unique-network / refs/commits / a1d8979156df

difftreelog

fix tests

Trubnikov Sergey2023-04-19parent: #7445bbe.patch.diff
in: master

2 files changed

modifiedtests/src/eth/nonFungible.test.tsdiffbeforeafterboth
684 const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner.eth);684 const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner.eth);
685 const {tokenId} = await collection.mintToken(minter, {Ethereum: owner.eth});685 const {tokenId} = await collection.mintToken(minter, {Ethereum: owner.eth});
686686
687 for (let i = 1n; i < 100n; i++) {687 for (let i = 1n; i < 10n; i++) {
688 const ownerCross = await collectionEvm.methods.ownerOfCross(tokenId).call({from: owner.eth});688 const ownerCross = await collectionEvm.methods.ownerOfCross(tokenId).call({from: owner.eth});
689 expect(ownerCross.eth).to.be.eq(owner.eth);689 expect(ownerCross.eth).to.be.eq(owner.eth);
690 expect(ownerCross.sub).to.be.eq(owner.sub);690 expect(ownerCross.sub).to.be.eq(owner.sub);
modifiedtests/src/eth/reFungible.test.tsdiffbeforeafterboth
606 const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner.eth);606 const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner.eth);
607 const {tokenId} = await collection.mintToken(minter, 100n,{Ethereum: owner.eth});607 const {tokenId} = await collection.mintToken(minter, 100n,{Ethereum: owner.eth});
608608
609 for (let i = 1n; i < 100n; i++) {609 for (let i = 1n; i < 10n; i++) {
610 const ownerCross = await collectionEvm.methods.ownerOfCross(tokenId).call({from: owner.eth});610 const ownerCross = await collectionEvm.methods.ownerOfCross(tokenId).call({from: owner.eth});
611 expect(ownerCross.eth).to.be.eq(owner.eth);611 expect(ownerCross.eth).to.be.eq(owner.eth);
612 expect(ownerCross.sub).to.be.eq(owner.sub);612 expect(ownerCross.sub).to.be.eq(owner.sub);