Update eth/gasestimator/gasestimator.go

This commit is contained in:
Klimov Sergei 2026-02-07 09:05:48 +08:00 committed by GitHub
parent 75f8dd6025
commit adc122089e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))