Function: _postOp(PostOpMode mode, bytes calldata context, uint256 actualGasCost)

This function executes the Paymaster's payment conditions.

Inputs

  • mode

    • Control: Not controlled by the user.

    • Constraints: Must be one of these: opSucceeded, opReverted, or postOpReverted.

    • Impact: Used to determine the state of the operation. Unused in this instance.

  • context

    • Control: Partially controlled by the user.

    • Constraints: N/A.

    • Impact: This contains the payment conditions signed by the Paymaster.

  • actualGasCost

    • Control: Not controlled by the user.

    • Constraints: N/A.

    • Impact: This is the gas amount that is paid to the Entrypoint.

Branches and code coverage (including function calls)

Intended branches

  • Succeeds with valid arguments.

Negative behavior

  • Should revert if enough gas it not provided through verificationGasLimit.

Zellic © 2024Back to top ↑