From bb64e2bec5d979e2798437aff05145e8a5a531af Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Mon, 19 Dec 2022 07:07:03 +0000 Subject: [PATCH] Add required pallets --- --- a/tests/src/eth/allowlist.test.ts +++ b/tests/src/eth/allowlist.test.ts @@ -98,7 +98,7 @@ {mode: 'rft' as const, requiredPallets: [Pallets.ReFungible]}, {mode: 'ft' as const, requiredPallets: []}, ].map(testCase => - itEth(`Collection allowlist can be added and removed by [cross] address for ${testCase.mode}`, async ({helper}) => { + itEth.ifWithPallets(`Collection allowlist can be added and removed by [cross] address for ${testCase.mode}`, testCase.requiredPallets, async ({helper}) => { const owner = (await helper.eth.createAccountWithBalance(donor)).toLowerCase(); const [userSub] = await helper.arrange.createAccounts([10n], donor); const userEth = await helper.eth.createAccountWithBalance(donor); @@ -166,7 +166,7 @@ {mode: 'rft' as const, cross: false, requiredPallets: [Pallets.ReFungible]}, {mode: 'ft' as const, cross: false, requiredPallets: []}, ].map(testCase => - itEth(`Non-owner cannot add or remove from collection allowlist ${testCase.cross ? 'cross ' : ''}${testCase.mode}`, async ({helper}) => { + itEth.ifWithPallets(`Non-owner cannot add or remove from collection allowlist ${testCase.cross ? 'cross ' : ''}${testCase.mode}`, testCase.requiredPallets, async ({helper}) => { // Select methods: const addToAllowList = testCase.cross ? 'addToCollectionAllowListCross' : 'addToCollectionAllowList'; const removeFromAllowList = testCase.cross ? 'removeFromCollectionAllowListCross' : 'removeFromCollectionAllowList'; -- gitstuff