Skip to content

Commit

Permalink
Adding validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
shahafn committed Feb 12, 2024
1 parent fd51651 commit 22d4d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/validation-manager/src/ValidationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class ValidationManager {

const verificationCost = BigNumber.from(res.returnInfo.preOpGas).sub(userOp.preVerificationGas)
const extraGas = BigNumber.from(userOp.verificationGasLimit).sub(verificationCost).toNumber()
requireCond(extraGas >= 2000, `verificationGas should have extra 2000 gas. has only ${extraGas}`)
requireCond(extraGas >= 2000, `verificationGas should have extra 2000 gas. has only ${extraGas}`, ValidationErrors.SimulateValidation)

return {
...res,
Expand Down

0 comments on commit 22d4d16

Please sign in to comment.