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

ERC1363SpenderMockUpgradeable

Inherits: Initializable, IERC1363Spender

State Variables

_retval

bytes4 private _retval;

_error

RevertType private _error;

Functions

__ERC1363SpenderMock_init

function __ERC1363SpenderMock_init() internal onlyInitializing;

__ERC1363SpenderMock_init_unchained

function __ERC1363SpenderMock_init_unchained() internal onlyInitializing;

setUp

function setUp(bytes4 retval, RevertType error) public;

onApprovalReceived

function onApprovalReceived(address owner, uint256 value, bytes calldata data) external override returns (bytes4);

Events

Approved

event Approved(address owner, uint256 value, bytes data);

Errors

CustomError

error CustomError(bytes4);

Enums

RevertType

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