Don't emit Approval event when approval is cleared on transfer (#1039)

This commit is contained in:
Amir Bandeali
2018-06-24 23:04:57 -07:00
committed by Matt Condon
parent f18c3bc438
commit dc1e352cc4
3 changed files with 12 additions and 34 deletions

View File

@ -299,7 +299,6 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
require(ownerOf(_tokenId) == _owner);
if (tokenApprovals[_tokenId] != address(0)) {
tokenApprovals[_tokenId] = address(0);
emit Approval(_owner, address(0), _tokenId);
}
}