From adc122089e2520037f2fb6af8af73ef8db26d899 Mon Sep 17 00:00:00 2001 From: Klimov Sergei Date: Sat, 7 Feb 2026 09:05:48 +0800 Subject: [PATCH] Update eth/gasestimator/gasestimator.go --- eth/gasestimator/gasestimator.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/gasestimator/gasestimator.go b/eth/gasestimator/gasestimator.go index 04c0fed82c..9dacb074e0 100644 --- a/eth/gasestimator/gasestimator.go +++ b/eth/gasestimator/gasestimator.go @@ -262,6 +262,7 @@ func run(ctx context.Context, call *core.Message, opts *Options) (*core.Executio // context for the lifetime of this method call. ctx, cancel := context.WithCancel(ctx) defer cancel() + context.AfterFunc(ctx, evm.Cancel) // Execute the call, returning a wrapped error or the result result, err := core.ApplyMessage(evm, call, new(core.GasPool).AddGas(math.MaxUint64))