From 05a4ba4417db387b951ddb4e0e529b85749bfcf3 Mon Sep 17 00:00:00 2001 From: Julian R <56316686+julianmrodri@users.noreply.github.com> Date: Wed, 6 May 2020 01:14:25 -0300 Subject: [PATCH 1/2] Making IERC721Receiver an interface --- contracts/token/ERC721/IERC721Receiver.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/token/ERC721/IERC721Receiver.sol b/contracts/token/ERC721/IERC721Receiver.sol index d1b2e23e031..c9155728a44 100644 --- a/contracts/token/ERC721/IERC721Receiver.sol +++ b/contracts/token/ERC721/IERC721Receiver.sol @@ -1,11 +1,11 @@ -pragma solidity ^0.6.0; +pragma solidity ^0.6.2; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ -abstract contract IERC721Receiver { +interface IERC721Receiver { /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient @@ -20,6 +20,6 @@ abstract contract IERC721Receiver { * @param data Additional data with no specified format * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` */ - function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data) - public virtual returns (bytes4); + function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) + external returns (bytes4); } From 456cc9b70bb06b07242f12c0e77068c05415313e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Wed, 6 May 2020 16:46:58 -0300 Subject: [PATCH 2/2] Update IERC721Receiver.sol --- contracts/token/ERC721/IERC721Receiver.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/token/ERC721/IERC721Receiver.sol b/contracts/token/ERC721/IERC721Receiver.sol index c9155728a44..35d1550301e 100644 --- a/contracts/token/ERC721/IERC721Receiver.sol +++ b/contracts/token/ERC721/IERC721Receiver.sol @@ -1,4 +1,4 @@ -pragma solidity ^0.6.2; +pragma solidity ^0.6.0; /** * @title ERC721 token receiver interface