diff options
Diffstat (limited to 'packages/contracts/test/asset_proxy')
-rw-r--r-- | packages/contracts/test/asset_proxy/proxies.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/contracts/test/asset_proxy/proxies.ts b/packages/contracts/test/asset_proxy/proxies.ts index 5f4c5b597..869ba4b2a 100644 --- a/packages/contracts/test/asset_proxy/proxies.ts +++ b/packages/contracts/test/asset_proxy/proxies.ts @@ -192,7 +192,7 @@ describe('Asset Transfer Proxies', () => { }); }); - describe('batchTransferFrom', () => { + describe('batchTransferFrom ERC20', () => { it('should succesfully make multiple token transfers', async () => { const erc20Balances = await erc20Wrapper.getBalancesAsync(); @@ -443,7 +443,7 @@ describe('Asset Transfer Proxies', () => { }); }); - describe('batchTransferFrom', () => { + describe('batchTransferFrom ERC721', () => { it('should succesfully make multiple token transfers', async () => { const erc721TokensById = await erc721Wrapper.getBalancesAsync(); const [makerTokenIdA, makerTokenIdB] = erc721TokensById[makerAddress][erc721Token.address]; @@ -468,7 +468,10 @@ describe('Asset Transfer Proxies', () => { txHash, constants.AWAIT_TRANSACTION_MINED_MS, ); - expect(res.logs.length).to.equal(numTransfers); + // During an ERC721 transfer enabled by a specific token approval, + // the approval is cleared, emitting an event + const numApprovals = 2; + expect(res.logs.length).to.equal(numTransfers + numApprovals); const newOwnerMakerAssetA = await erc721Token.ownerOf.callAsync(makerTokenIdA); const newOwnerMakerAssetB = await erc721Token.ownerOf.callAsync(makerTokenIdB); |