git.delta.rocks / unique-network / refs/commits / 2baf5e90622d

difftreelog

CORE-325 Fir PR

Trubnikov Sergey2022-04-07parent: #605a297.patch.diff
in: master

2 files changed

modifiedtests/src/eth/collectionSponsoring.test.tsdiffbeforeafterboth
1import privateKey from '../substrate/privateKey';1import privateKey from '../substrate/privateKey';
2import {addToAllowListExpectSuccess, confirmSponsorshipExpectSuccess, createCollectionExpectSuccess, enablePublicMintingExpectSuccess, setCollectionSponsorExpectSuccess} from '../util/helpers';2import {addToAllowListExpectSuccess, confirmSponsorshipExpectSuccess, createCollectionExpectSuccess, enablePublicMintingExpectSuccess, setCollectionSponsorExpectSuccess} from '../util/helpers';
3import {itWeb3, transferBalanceToEth, subToEth, createEthAccount, collectionIdToAddress, GAS_ARGS, normalizeEvents} from './util/helpers';3import {itWeb3, createEthAccount, collectionIdToAddress, GAS_ARGS, normalizeEvents} from './util/helpers';
4import nonFungibleAbi from './nonFungibleAbi.json';4import nonFungibleAbi from './nonFungibleAbi.json';
5import {expect} from 'chai';5import {expect} from 'chai';
66
7describe('evm collection sponsoring', () => {7describe('evm collection sponsoring', () => {
8 itWeb3('sponsors mint transactions', async ({api, web3}) => {8 itWeb3('sponsors mint transactions', async ({web3}) => {
9 const alice = privateKey('//Alice');9 const alice = privateKey('//Alice');
1010
11 const collection = await createCollectionExpectSuccess();11 const collection = await createCollectionExpectSuccess();
12 await setCollectionSponsorExpectSuccess(collection, alice.address);12 await setCollectionSponsorExpectSuccess(collection, alice.address);
13 await confirmSponsorshipExpectSuccess(collection);13 await confirmSponsorshipExpectSuccess(collection);
14
15 // Wouldn't be needed after CORE-300
16 await transferBalanceToEth(api, alice, subToEth(alice.address));
1714
18 const minter = createEthAccount(web3);15 const minter = createEthAccount(web3);
19 expect(await web3.eth.getBalance(minter)).to.equal('0');16 expect(await web3.eth.getBalance(minter)).to.equal('0');
modifiedtests/src/eth/metadata.test.tsdiffbeforeafterboth
--- a/tests/src/eth/metadata.test.ts
+++ b/tests/src/eth/metadata.test.ts
@@ -67,7 +67,7 @@
   });
 });
 
-describe.only('Support ERC721Metadata', () => {
+describe('Support ERC721Metadata', () => {
   itWeb3('Check unsupport ERC721Metadata ShemaVersion::Unique', async ({web3, api}) => {
     const collectionId = await createCollectionExpectSuccess({
       mode: {type: 'NFT'},