eth/gasestimator: I hate you linter

This commit is contained in:
Péter Szilágyi 2023-11-28 19:16:57 +02:00
parent cc3d58dbdf
commit 339429565c

View file

@ -52,7 +52,7 @@ type Options struct {
func Estimate(ctx context.Context, call *core.Message, opts *Options, gasCap uint64) (uint64, []byte, error) { 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 // Binary search the gas limit, as it may need to be higher than the amount used
var ( var (
lo = params.TxGas - 1 // lowest-known gas limit where tx execution fails lo uint64 // lowest-known gas limit where tx execution fails
hi uint64 // lowest-known gas limit where tx execution succeeds hi uint64 // lowest-known gas limit where tx execution succeeds
) )
// Determine the highest gas limit can be used during the estimation. // Determine the highest gas limit can be used during the estimation.