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

Commit 5f3ad3e

Browse files
authored
Treat AA23 and AA33 with a custom revert reason as OOG (#386)
1 parent 51cc55e commit 5f3ad3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gas/estimate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ func isValidationOOG(err error) bool {
2828
strings.Contains(err.Error(), "AA41 too little verificationGas") ||
2929
strings.Contains(err.Error(), "AA51 prefund below actualGasCost") ||
3030
strings.Contains(err.Error(), "AA13 initCode failed or OOG") ||
31-
strings.Contains(err.Error(), "AA23 reverted (or OOG)") ||
32-
strings.Contains(err.Error(), "AA33 reverted (or OOG)") ||
31+
strings.Contains(err.Error(), "AA23 reverted") ||
32+
strings.Contains(err.Error(), "AA33 reverted") ||
3333
strings.Contains(err.Error(), "return data out of bounds") ||
3434
strings.Contains(err.Error(), "validation OOG")
3535
}

0 commit comments

Comments
 (0)