difftreelog
Tests up
in: master
2 files changed
tests/src/eth/createFTCollection.test.tsdiffbeforeafterboth196 }196 }197 {197 {198 await expect(peasantCollection.methods198 await expect(peasantCollection.methods199 .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.methods225 .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 }); tests/src/eth/events.test.tsdiffbeforeafterboth--- a/tests/src/eth/events.test.ts
+++ b/tests/src/eth/events.test.ts
@@ -16,7 +16,7 @@
import {expect} from 'chai';
import {IKeyringPair} from '@polkadot/types/types';
-import {EthUniqueHelper, itEth, usingEthPlaygrounds} from './util';
+import {CollectionLimits, EthUniqueHelper, itEth, usingEthPlaygrounds} from './util';
import {IEvent, TCollectionMode} from '../util/playgrounds/types';
import {Pallets, requirePalletsOrSkip} from '../util';
import {EthTokenPermissions, NormalizedEvent} from './util/playgrounds/types';
@@ -234,7 +234,7 @@
});
const {unsubscribe, collectedEvents: subEvents} = await helper.subscribeEvents([{section: 'common', names: ['CollectionLimitSet']}]);
{
- await collection.methods.setCollectionLimit('ownerCanTransfer', 0n).send({from: owner});
+ await collection.methods.setCollectionLimit(CollectionLimits.OwnerCanTransfer, true, 0).send({from: owner});
await helper.wait.newBlocks(1);
expect(ethEvents).to.be.like([
{