Follow _approve overrides in ERC721._update (#4552)

This commit is contained in:
Francisco
2023-08-31 11:23:40 -03:00
committed by GitHub
parent 8a0b7bed82
commit 8186c07a83
4 changed files with 43 additions and 14 deletions

View File

@ -87,8 +87,9 @@ function shouldBehaveLikeERC721(owner, newOwner, approved, anotherApproved, oper
expectEvent(receipt, 'Transfer', { from: owner, to: this.toWhom, tokenId: tokenId });
});
it('clears the approval for the token ID', async function () {
it('clears the approval for the token ID with no event', async function () {
expect(await this.token.getApproved(tokenId)).to.be.equal(ZERO_ADDRESS);
expectEvent.notEmitted(receipt, 'Approval');
});
it('adjusts owners balances', async function () {