Improve ERC721 Wrapper tests (#4039)

This commit is contained in:
Ernesto García
2023-02-09 15:36:14 -06:00
committed by GitHub
parent 790cc5b65a
commit 6259e13a0c

View File

@ -196,11 +196,21 @@ contract('ERC721Wrapper', function (accounts) {
to: initialHolder,
tokenId: firstTokenId,
});
await expectEvent.inTransaction(tx, this.underlying, 'Transfer', {
from: this.token.address,
to: initialHolder,
tokenId: secondTokenId,
});
await expectEvent.inTransaction(tx, this.token, 'Transfer', {
from: initialHolder,
to: constants.ZERO_ADDRESS,
tokenId: firstTokenId,
});
await expectEvent.inTransaction(tx, this.token, 'Transfer', {
from: initialHolder,
to: constants.ZERO_ADDRESS,
tokenId: secondTokenId,
});
});
it('works to another account', async function () {