--- a/tests/src/eth/createFTCollection.test.ts +++ b/tests/src/eth/createFTCollection.test.ts @@ -196,7 +196,6 @@ } { await expect(peasantCollection.methods - .setCollectionLimit('accountTokenOwnershipLimit', '1000') .setCollectionLimit(CollectionLimits.AccountTokenOwnership, true, 1000) .call()).to.be.rejectedWith(EXPECTED_ERROR); } @@ -222,7 +221,7 @@ } { await expect(peasantCollection.methods - .setCollectionLimit('accountTokenOwnershipLimit', '1000') + .setCollectionLimit(CollectionLimits.AccountTokenOwnership, true, 1000) .call()).to.be.rejectedWith(EXPECTED_ERROR); } }); --- 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([ {