From 339429565c514a2e59b851a672908ec6837f1c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 28 Nov 2023 19:16:57 +0200 Subject: [PATCH] eth/gasestimator: I hate you linter --- eth/gasestimator/gasestimator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/gasestimator/gasestimator.go b/eth/gasestimator/gasestimator.go index fcd787f701..4a8e20dfed 100644 --- a/eth/gasestimator/gasestimator.go +++ b/eth/gasestimator/gasestimator.go @@ -52,8 +52,8 @@ type Options struct { func Estimate(ctx context.Context, call *core.Message, opts *Options, gasCap uint64) (uint64, []byte, error) { // Binary search the gas limit, as it may need to be higher than the amount used var ( - lo = params.TxGas - 1 // lowest-known gas limit where tx execution fails - hi uint64 // lowest-known gas limit where tx execution succeeds + lo uint64 // lowest-known gas limit where tx execution fails + hi uint64 // lowest-known gas limit where tx execution succeeds ) // Determine the highest gas limit can be used during the estimation. hi = opts.Header.GasLimit