Entrypoint Errors
AA23: ValidateUserOp Function Failure
Troubleshooting validateUserOp execution issues
Note: OOG = “Out Of Gas”
The smart account’s validateUserOp
function encountered an issue:
- It may have reverted unexpectedly
- It may have exhausted its gas allocation
Troubleshooting Steps
-
Gas Limit Check:
- Increase the
verificationGasLimit
to covervalidateUserOp
costs, if it is less.
- Increase the
-
Logic Verification:
- Review
validateUserOp
implementation - Confirm the user operation’s validity
- Review
-
For Non-Paymaster Scenarios:
- Verify sufficient native tokens in the
sender
address:
- Verify sufficient native tokens in the
-
For Paymaster Usage: - Ensure paymasterAndData is properly set:
-
Signature Verification:
- Ensure your implementation doesn’t revert for invalid signatures
- For non-time-sensitive operations, return
uint(1)
for invalid signatures
-
Advanced Debugging:
- Utilize tools like Tenderly for in-depth analysis