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

ERC1363ReceiverMock

Inherits: IERC1363Receiver

State Variables

_retval

bytes4 private _retval;

_error

RevertType private _error;

Functions

constructor

constructor();

setUp

function setUp(bytes4 retval, RevertType error) public;

onTransferReceived

function onTransferReceived(address operator, address from, uint256 value, bytes calldata data)
    external
    override
    returns (bytes4);

Events

Received

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

Errors

CustomError

error CustomError(bytes4);

Enums

RevertType

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