From 7108cf7ae4292097c30f810c4ede1fb9210b2a0e Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Thu, 22 Dec 2022 16:48:37 +0000 Subject: [PATCH] Fix tests: lost await --- --- a/tests/src/eth/createFTCollection.test.ts +++ b/tests/src/eth/createFTCollection.test.ts @@ -96,7 +96,7 @@ .to.be.true; // check collectionOwner: - const collectionEvm = helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true); + const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true); const collectionOwner = await collectionEvm.methods.collectionOwner().call(); expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner)); }); --- a/tests/src/eth/createNFTCollection.test.ts +++ b/tests/src/eth/createNFTCollection.test.ts @@ -136,7 +136,7 @@ .to.be.true; // check collectionOwner: - const collectionEvm = helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true); + const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true); const collectionOwner = await collectionEvm.methods.collectionOwner().call(); expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner)); }); --- a/tests/src/eth/createRFTCollection.test.ts +++ b/tests/src/eth/createRFTCollection.test.ts @@ -147,7 +147,7 @@ .to.be.true; // check collectionOwner: - const collectionEvm = helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true); + const collectionEvm = await helper.ethNativeContract.collection(collectionAddress, 'ft', owner, true); const collectionOwner = await collectionEvm.methods.collectionOwner().call(); expect(helper.address.restoreCrossAccountFromBigInt(BigInt(collectionOwner.sub))).to.eq(helper.address.ethToSubstrate(owner)); }); -- gitstuff