From 78dc37739f6fa3ab50a49dc8b8fc4add190b391c Mon Sep 17 00:00:00 2001 From: "Julian M. Rodriguez" <56316686+julianmrodri@users.noreply.github.com> Date: Wed, 6 May 2020 16:47:53 -0300 Subject: [PATCH] Making IERC721Receiver an interface (#2225) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Making IERC721Receiver an interface * Update IERC721Receiver.sol Co-authored-by: Nicolás Venturo --- contracts/token/ERC721/IERC721Receiver.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/token/ERC721/IERC721Receiver.sol b/contracts/token/ERC721/IERC721Receiver.sol index d1b2e23e0..35d155030 100644 --- a/contracts/token/ERC721/IERC721Receiver.sol +++ b/contracts/token/ERC721/IERC721Receiver.sol @@ -5,7 +5,7 @@ pragma solidity ^0.6.0; * @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); }