Compare commits

...

3 Commits

Author SHA1 Message Date
cec0800c54 3.4.1 2021-03-03 16:54:40 -03:00
b079293e37 Add a changelog entry
(cherry picked from commit 4e60480fdc)
2021-03-03 16:49:25 -03:00
a686a906bc Make ERC721._approve internal
(cherry picked from commit bb068ed5d9)
2021-03-03 16:39:47 -03:00
5 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## 3.4.1 (2021-03-03)
* `ERC721`: made `_approve` an internal function (was private).
## 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))

View File

@ -1,7 +1,7 @@
{
"name": "@openzeppelin/contracts",
"description": "Secure Smart Contract library for Solidity",
"version": "3.4.0",
"version": "3.4.1",
"files": [
"**/*.sol",
"/build/contracts/*.json",

View File

@ -449,7 +449,12 @@ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable
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;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "openzeppelin-solidity",
"version": "3.4.0",
"version": "3.4.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,7 +1,7 @@
{
"name": "openzeppelin-solidity",
"description": "Secure Smart Contract library for Solidity",
"version": "3.4.0",
"version": "3.4.1",
"files": [
"/contracts/**/*.sol",
"/build/contracts/*.json",