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

SampleAccount

Inherits: IAccount, Ownable

Functions

constructor

constructor(address initialOwner) Ownable(initialOwner);

validateUserOp

function validateUserOp(PackedUserOperation calldata userOp, bytes32 userOpHash, uint256 missingAccountFunds)
    external
    override
    returns (uint256 validationData);

execute

function execute(Mode mode, bytes calldata executionCalldata) external payable;

Events

Log

event Log(bool duringValidation, Execution[] calls);

Errors

UnsupportedCallType

error UnsupportedCallType(CallType callType);