git.delta.rocks / unique-network / refs/commits / 07c2857049e0

difftreelog

Tests up

Max Andreev2022-12-15parent: #43dd64e.patch.diff
in: master

2 files changed

modifiedtests/src/eth/createFTCollection.test.tsdiffbeforeafterboth
196 }196 }
197 {197 {
198 await expect(peasantCollection.methods198 await expect(peasantCollection.methods
199 .setCollectionLimit('accountTokenOwnershipLimit', '1000')199 .setCollectionLimit(CollectionLimits.AccountTokenOwnership, true, 1000)
200 .setCollectionLimit(CollectionLimits.AccountTokenOwnership, true, 1000)
201 .call()).to.be.rejectedWith(EXPECTED_ERROR);200 .call()).to.be.rejectedWith(EXPECTED_ERROR);
202 }201 }
203 });202 });
222 }221 }
223 {222 {
224 await expect(peasantCollection.methods223 await expect(peasantCollection.methods
225 .setCollectionLimit('accountTokenOwnershipLimit', '1000')224 .setCollectionLimit(CollectionLimits.AccountTokenOwnership, true, 1000)
226 .call()).to.be.rejectedWith(EXPECTED_ERROR);225 .call()).to.be.rejectedWith(EXPECTED_ERROR);
227 }226 }
228 }); 227 });
modifiedtests/src/eth/events.test.tsdiffbeforeafterboth
1616
17import {expect} from 'chai';17import {expect} from 'chai';
18import {IKeyringPair} from '@polkadot/types/types';18import {IKeyringPair} from '@polkadot/types/types';
19import {EthUniqueHelper, itEth, usingEthPlaygrounds} from './util';19import {CollectionLimits, EthUniqueHelper, itEth, usingEthPlaygrounds} from './util';
20import {IEvent, TCollectionMode} from '../util/playgrounds/types';20import {IEvent, TCollectionMode} from '../util/playgrounds/types';
21import {Pallets, requirePalletsOrSkip} from '../util';21import {Pallets, requirePalletsOrSkip} from '../util';
22import {EthTokenPermissions, NormalizedEvent} from './util/playgrounds/types';22import {EthTokenPermissions, NormalizedEvent} from './util/playgrounds/types';
234 });234 });
235 const {unsubscribe, collectedEvents: subEvents} = await helper.subscribeEvents([{section: 'common', names: ['CollectionLimitSet']}]);235 const {unsubscribe, collectedEvents: subEvents} = await helper.subscribeEvents([{section: 'common', names: ['CollectionLimitSet']}]);
236 {236 {
237 await collection.methods.setCollectionLimit('ownerCanTransfer', 0n).send({from: owner});237 await collection.methods.setCollectionLimit(CollectionLimits.OwnerCanTransfer, true, 0).send({from: owner});
238 await helper.wait.newBlocks(1);238 await helper.wait.newBlocks(1);
239 expect(ethEvents).to.be.like([239 expect(ethEvents).to.be.like([
240 {240 {