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

difftreelog

Add required pallets

Max Andreev2022-12-19parent: #1b028ed.patch.diff
in: master

1 file changed

modifiedtests/src/eth/allowlist.test.tsdiffbeforeafterboth
98 {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},98 {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]},
99 {mode: 'ft' as const, requiredPallets: []},99 {mode: 'ft' as const, requiredPallets: []},
100 ].map(testCase => 100 ].map(testCase =>
101 itEth(`Collection allowlist can be added and removed by [cross] address for ${testCase.mode}`, async ({helper}) => {101 itEth.ifWithPallets(`Collection allowlist can be added and removed by [cross] address for ${testCase.mode}`, testCase.requiredPallets, async ({helper}) => {
102 const owner = (await helper.eth.createAccountWithBalance(donor)).toLowerCase();102 const owner = (await helper.eth.createAccountWithBalance(donor)).toLowerCase();
103 const [userSub] = await helper.arrange.createAccounts([10n], donor);103 const [userSub] = await helper.arrange.createAccounts([10n], donor);
104 const userEth = await helper.eth.createAccountWithBalance(donor);104 const userEth = await helper.eth.createAccountWithBalance(donor);
166 {mode: 'rft' as const, cross: false, requiredPallets: [Pallets.ReFungible]},166 {mode: 'rft' as const, cross: false, requiredPallets: [Pallets.ReFungible]},
167 {mode: 'ft' as const, cross: false, requiredPallets: []},167 {mode: 'ft' as const, cross: false, requiredPallets: []},
168 ].map(testCase => 168 ].map(testCase =>
169 itEth(`Non-owner cannot add or remove from collection allowlist ${testCase.cross ? 'cross ' : ''}${testCase.mode}`, async ({helper}) => {169 itEth.ifWithPallets(`Non-owner cannot add or remove from collection allowlist ${testCase.cross ? 'cross ' : ''}${testCase.mode}`, testCase.requiredPallets, async ({helper}) => {
170 // Select methods:170 // Select methods:
171 const addToAllowList = testCase.cross ? 'addToCollectionAllowListCross' : 'addToCollectionAllowList';171 const addToAllowList = testCase.cross ? 'addToCollectionAllowListCross' : 'addToCollectionAllowList';
172 const removeFromAllowList = testCase.cross ? 'removeFromCollectionAllowListCross' : 'removeFromCollectionAllowList';172 const removeFromAllowList = testCase.cross ? 'removeFromCollectionAllowListCross' : 'removeFromCollectionAllowList';