From 828ac1670e1b9b7f6ee6199c675422b5e59b6894 Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Wed, 15 Jul 2026 20:00:00 +0800 Subject: [PATCH] eth/gasestimator: treat floor data gas errors as insufficient gas ErrFloorDataGas means the gas limit is below the EIP-7623 floor cost. Treat it like a gas-related failure so estimation raises the limit instead of aborting. --- eth/gasestimator/gasestimator.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/gasestimator/gasestimator.go b/eth/gasestimator/gasestimator.go index f45fc0d8c9..2483ac4204 100644 --- a/eth/gasestimator/gasestimator.go +++ b/eth/gasestimator/gasestimator.go @@ -219,6 +219,9 @@ func execute(ctx context.Context, call *core.Message, opts *Options, gasLimit ui if errors.Is(err, core.ErrGasLimitTooHigh) { return true, nil, nil // Special case, lower gas limit } + if errors.Is(err, vm.ErrFloorDataGas) { + return true, nil, nil // Special case, raise gas limit + } return true, nil, err // Bail out } return result.Failed(), result, nil