Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
Treat AA23 and AA33 with a custom revert reason as OOG (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
hazim-j authored Mar 14, 2024
1 parent 51cc55e commit 5f3ad3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/gas/estimate.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func isValidationOOG(err error) bool {
strings.Contains(err.Error(), "AA41 too little verificationGas") ||
strings.Contains(err.Error(), "AA51 prefund below actualGasCost") ||
strings.Contains(err.Error(), "AA13 initCode failed or OOG") ||
strings.Contains(err.Error(), "AA23 reverted (or OOG)") ||
strings.Contains(err.Error(), "AA33 reverted (or OOG)") ||
strings.Contains(err.Error(), "AA23 reverted") ||
strings.Contains(err.Error(), "AA33 reverted") ||
strings.Contains(err.Error(), "return data out of bounds") ||
strings.Contains(err.Error(), "validation OOG")
}
Expand Down

0 comments on commit 5f3ad3e

Please sign in to comment.