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

AccountECDSAMockUpgradeable

Inherits: Initializable, Account, SignerECDSAUpgradeable, ERC7739Upgradeable, ERC7821, ERC721HolderUpgradeable, ERC1155HolderUpgradeable

Functions

__AccountECDSAMock_init

function __AccountECDSAMock_init() internal onlyInitializing;

__AccountECDSAMock_init_unchained

function __AccountECDSAMock_init_unchained() internal onlyInitializing;

_erc7821AuthorizedExecutor

*Access control mechanism for the {execute} function. By default, only the contract itself is allowed to execute. Override this function to implement custom access control, for example to allow the ERC-4337 entrypoint to execute.

function _erc7821AuthorizedExecutor(
address caller,
bytes32 mode,
bytes calldata executionData
) internal view virtual override returns (bool) {
return caller == address(entryPoint()) || super._erc7821AuthorizedExecutor(caller, mode, executionData);
}
```*


```solidity
function _erc7821AuthorizedExecutor(address caller, bytes32 mode, bytes calldata executionData)
    internal
    view
    virtual
    override
    returns (bool);