Function: validateUserOp(UserOperation userOp, byte[32] userOpHash)

This validates user operation.

Inputs

  • userOp

    • Control: Could be controlled by the user.

    • Constraints: The data should be a valid UserOperation.

    • Impact: The user operation to be validated.

  • userOpHash

    • Control: Could be controlled by the user.

    • Constraints: N/A.

    • Impact: The hash of the userOp provided by the EP.

Branches and code coverage (including function calls)

Intended branches

  • Test result is correct if it is a single-chain signature.

  • Test result is correct if it is a multichain signature.

Negative behavior

  • Validation failed due to signature error.

  • Validation reverted due to invalid UserOp.

Zellic © 2024Back to top ↑