difftreelog
Fix tests: lost await
in: master
3 files changed
tests/src/eth/createFTCollection.test.tsdiffbeforeafterboth96 .to.be.true;96 .to.be.true;979798 // check collectionOwner:98 // check collectionOwner:99 const collectionEvm = helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true);99 const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true);100 const collectionOwner = await collectionEvm.methods.collectionOwner().call();100 const collectionOwner = await collectionEvm.methods.collectionOwner().call();101 expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner));101 expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner));102 });102 });tests/src/eth/createNFTCollection.test.tsdiffbeforeafterboth136 .to.be.true;136 .to.be.true;137137138 // check collectionOwner:138 // check collectionOwner:139 const collectionEvm = helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true);139 const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true);140 const collectionOwner = await collectionEvm.methods.collectionOwner().call();140 const collectionOwner = await collectionEvm.methods.collectionOwner().call();141 expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner));141 expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner));142 });142 });tests/src/eth/createRFTCollection.test.tsdiffbeforeafterboth147 .to.be.true;147 .to.be.true;148148149 // check collectionOwner:149 // check collectionOwner:150 const collectionEvm = helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true);150 const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true);151 const collectionOwner = await collectionEvm.methods.collectionOwner().call();151 const collectionOwner = await collectionEvm.methods.collectionOwner().call();152 expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner));152 expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner));153 });153 });