Compare commits
2 Commits
v4.0.0-bet
...
solc-0.6
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e60480fdc | |||
| bb068ed5d9 |
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
* `ERC721`: made `_approve` an internal function (was private).
|
||||||
|
|
||||||
## 3.4.0 (2021-02-02)
|
## 3.4.0 (2021-02-02)
|
||||||
|
|
||||||
* `BeaconProxy`: added new kind of proxy that allows simultaneous atomic upgrades. ([#2411](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2411))
|
* `BeaconProxy`: added new kind of proxy that allows simultaneous atomic upgrades. ([#2411](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2411))
|
||||||
|
|||||||
@ -449,7 +449,12 @@ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable
|
|||||||
return (retval == _ERC721_RECEIVED);
|
return (retval == _ERC721_RECEIVED);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _approve(address to, uint256 tokenId) private {
|
/**
|
||||||
|
* @dev Approve `to` to operate on `tokenId`
|
||||||
|
*
|
||||||
|
* Emits an {Approval} event.
|
||||||
|
*/
|
||||||
|
function _approve(address to, uint256 tokenId) internal virtual {
|
||||||
_tokenApprovals[tokenId] = to;
|
_tokenApprovals[tokenId] = to;
|
||||||
emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
|
emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user