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

difftreelog

Fix nesting for collection admin

Andrey Kuznetsov2022-06-14parent: #f60664c.patch.diff
in: master

1 file changed

modifiedtests/src/nesting/nest.test.tsdiffbeforeafterboth
454 it('Admin (NFT): disallows an Admin to nest and unnest someone else\'s token', async () => {454 it('Admin (NFT): disallows an Admin to nest and unnest someone else\'s token', async () => {
455 await usingApi(async api => {455 await usingApi(async api => {
456 const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});456 const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
457 await setCollectionLimitsExpectSuccess(alice, collection, {ownerCanTransfer: true});
457 await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {collectionAdmin: true}});458 await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {collectionAdmin: true}});
458459
459 await addToAllowListExpectSuccess(alice, collection, bob.address);460 await addToAllowListExpectSuccess(alice, collection, bob.address);