From 15ee816104bac049e6753d11eab78b2f07b821ea Mon Sep 17 00:00:00 2001 From: Pierre Rousset Date: Thu, 24 Jun 2021 18:16:01 +0900 Subject: [PATCH] accounts/abi/bind: fix gas price suggestion with pre EIP-1559 clients --- accounts/abi/bind/base.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go index 25757f1d67fd..274f6e4d946f 100644 --- a/accounts/abi/bind/base.go +++ b/accounts/abi/bind/base.go @@ -256,13 +256,10 @@ func (c *BoundContract) transact(opts *TransactOpts, contract *common.Address, i return nil, errors.New("maxFeePerGas or maxPriorityFeePerGas specified but london is not active yet") } if opts.GasPrice == nil { - price, err := c.transactor.SuggestGasTipCap(ensureContext(opts.Context)) + price, err := c.transactor.SuggestGasPrice(ensureContext(opts.Context)) if err != nil { return nil, err } - if head.BaseFee != nil { - price.Add(price, head.BaseFee) - } opts.GasPrice = price } }