Unverified Commit 78dc3773 by Julian M. Rodriguez Committed by GitHub

Making IERC721Receiver an interface (#2225)

* Making IERC721Receiver an interface

* Update IERC721Receiver.sol

Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
parent ac0a4327
...@@ -5,7 +5,7 @@ pragma solidity ^0.6.0; ...@@ -5,7 +5,7 @@ pragma solidity ^0.6.0;
* @dev Interface for any contract that wants to support safeTransfers * @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts. * from ERC721 asset contracts.
*/ */
abstract contract IERC721Receiver { interface IERC721Receiver {
/** /**
* @notice Handle the receipt of an NFT * @notice Handle the receipt of an NFT
* @dev The ERC721 smart contract calls this function on the recipient * @dev The ERC721 smart contract calls this function on the recipient
...@@ -20,6 +20,6 @@ abstract contract IERC721Receiver { ...@@ -20,6 +20,6 @@ abstract contract IERC721Receiver {
* @param data Additional data with no specified format * @param data Additional data with no specified format
* @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
*/ */
function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data) function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data)
public virtual returns (bytes4); external returns (bytes4);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment