difftreelog
Fix tests
in: master
1 file changed
tests/src/eth/collectionLimits.test.tsdiffbeforeafterboth121 }));121 }));122122123 [123 [124 {case: 'nft' as const, method: 'createNFTCollection' as const},124 {case: 'nft' as const, requiredPallets: []},125 {case: 'rft' as const, method: 'createRFTCollection' as const, requiredPallets: [Pallets.ReFungible]},125 {case: 'rft' as const, requiredPallets: [Pallets.ReFungible]},126 {case: 'ft' as const, method: 'createFTCollection' as const},126 {case: 'ft' as const, requiredPallets: []},127 ].map(testCase =>127 ].map(testCase =>128 itEth.ifWithPallets(`Non-owner and non-admin cannot set collection limits for ${testCase.case}`, testCase.requiredPallets || [], async ({helper}) => {128 itEth.ifWithPallets(`Non-owner and non-admin cannot set collection limits for ${testCase.case}`, testCase.requiredPallets || [], async ({helper}) => {129 const owner = await helper.eth.createAccountWithBalance(donor);129 const owner = await helper.eth.createAccountWithBalance(donor);130 const nonOwner = await helper.eth.createAccountWithBalance(donor);130 const nonOwner = await helper.eth.createAccountWithBalance(donor);131 const {collectionAddress} = await helper.eth.createCollecion(testCase.method, owner, 'Limits', 'absolutely anything', 'FLO', 18);131 const {collectionAddress} = await helper.eth.createCollection(testCase.case, owner, 'Limits', 'absolutely anything', 'FLO', 18);132132133 const collectionEvm = helper.ethNativeContract.collection(collectionAddress, testCase.case, owner);133 const collectionEvm = helper.ethNativeContract.collection(collectionAddress, testCase.case, owner);134 await expect(collectionEvm.methods134 await expect(collectionEvm.methods