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

difftreelog

Use chain formats in tests

Max Andreev2022-12-22parent: #7108cf7.patch.diff
in: master

4 files changed

modifiedtests/src/eth/collectionSponsoring.test.tsdiffbeforeafterboth
102102
103 await collectionEvm.methods.confirmCollectionSponsorship().send({from: sponsor});103 await collectionEvm.methods.confirmCollectionSponsorship().send({from: sponsor});
104 let sponsorTuple = await collectionEvm.methods.collectionSponsor().call({from: owner});104 let sponsorTuple = await collectionEvm.methods.collectionSponsor().call({from: owner});
105 expect(helper.address.restoreCrossAccountFromBigInt(BigInt(sponsorTuple.sub))).to.be.eq(helper.address.ethToSubstrate(sponsor));105 expect(helper.address.restoreCrossAccountFromBigInt(BigInt(sponsorTuple.sub))).to.be.eq(helper.address.ethToSubstrate(sponsor, true));
106 expect(await collectionEvm.methods.hasCollectionPendingSponsor().call({from: owner})).to.be.false;106 expect(await collectionEvm.methods.hasCollectionPendingSponsor().call({from: owner})).to.be.false;
107107
108 await collectionEvm.methods.removeCollectionSponsor().send({from: owner});108 await collectionEvm.methods.removeCollectionSponsor().send({from: owner});
modifiedtests/src/eth/createFTCollection.test.tsdiffbeforeafterboth
98 // check collectionOwner:98 // check collectionOwner:
99 const collectionEvm = await 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, true));
102 });102 });
103103
104 itEth('destroyCollection', async ({helper}) => {104 itEth('destroyCollection', async ({helper}) => {
modifiedtests/src/eth/createNFTCollection.test.tsdiffbeforeafterboth
138 // check collectionOwner:138 // check collectionOwner:
139 const collectionEvm = await 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, true));
142 });142 });
143});143});
144144
modifiedtests/src/eth/createRFTCollection.test.tsdiffbeforeafterboth
149 // check collectionOwner:149 // check collectionOwner:
150 const collectionEvm = await 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, true));
153 });153 });
154});154});
155155