Implicitly clear ERC721 approval on burn (#3538)

This commit is contained in:
EthanOK
2022-07-09 16:25:45 +08:00
committed by GitHub
parent 3a1c020b7d
commit 96163c87e3
3 changed files with 2 additions and 5 deletions

View File

@ -693,10 +693,6 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
expectEvent(this.receipt, 'Transfer', { from: owner, to: ZERO_ADDRESS, tokenId: firstTokenId });
});
it('emits an Approval event', function () {
expectEvent(this.receipt, 'Approval', { owner, approved: ZERO_ADDRESS, tokenId: firstTokenId });
});
it('deletes the token', async function () {
expect(await this.token.balanceOf(owner)).to.be.bignumber.equal('1');
await expectRevert(