From d5edba8762a334413a7346c886e4e0d3c3ecc9b0 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Wed, 29 Jun 2022 08:26:14 +0000 Subject: [PATCH] fix: use transferFrom in Ouroboros detection test --- --- a/tests/src/nesting/graphs.test.ts +++ b/tests/src/nesting/graphs.test.ts @@ -36,7 +36,7 @@ await usingApi(async (api, privateKeyWrapper) => { const alice = privateKeyWrapper('//Alice'); const collection = await buildComplexObjectGraph(api, alice); - await setCollectionLimitsExpectSuccess(alice, collection, {ownerCanTransfer: true}); + const tokenTwoParent = tokenIdToCross(collection, 1); // to self await expect( @@ -49,7 +49,7 @@ 'second transaction', ).to.be.rejectedWith(/structure\.OuroborosDetected/); await expect( - executeTransaction(api, alice, api.tx.unique.transfer(tokenIdToCross(collection, 8), collection, 2, 1)), + executeTransaction(api, alice, api.tx.unique.transferFrom(tokenTwoParent, tokenIdToCross(collection, 8), collection, 2, 1)), 'third transaction', ).to.be.rejectedWith(/structure\.OuroborosDetected/); }); -- gitstuff