From 5f3ad3e2513686bb4320e1983f460ebf0d5d35fe Mon Sep 17 00:00:00 2001 From: hazim Date: Thu, 14 Mar 2024 20:57:54 +1100 Subject: [PATCH] Treat AA23 and AA33 with a custom revert reason as OOG (#386) --- pkg/gas/estimate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/gas/estimate.go b/pkg/gas/estimate.go index 517efc17..2520f0b0 100644 --- a/pkg/gas/estimate.go +++ b/pkg/gas/estimate.go @@ -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") }