Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ERC721ReceiverMockUpgradeable

Inherits: Initializable, IERC721Receiver

State Variables

_retval

bytes4 private _retval;

_error

RevertType private _error;

Functions

__ERC721ReceiverMock_init

function __ERC721ReceiverMock_init(bytes4 retval, RevertType error) internal onlyInitializing;

__ERC721ReceiverMock_init_unchained

function __ERC721ReceiverMock_init_unchained(bytes4 retval, RevertType error) internal onlyInitializing;

onERC721Received

function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data) public returns (bytes4);

Events

Received

event Received(address operator, address from, uint256 tokenId, bytes data, uint256 gas);

Errors

CustomError

error CustomError(bytes4);

Enums

RevertType

enum RevertType {
    None,
    RevertWithoutMessage,
    RevertWithMessage,
    RevertWithCustomError,
    Panic
}