From a75881ce41ba13562e74bd84a08299c702641f2b Mon Sep 17 00:00:00 2001 From: "Saman H. Pasha" <51169592+saman-pasha@users.noreply.github.com> Date: Fri, 14 Oct 2022 11:41:12 +0330 Subject: [PATCH] Update base.go if GasFeeCap and GasTipCap are specified no need to retrieve head --- accounts/abi/bind/base.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go index 88b997684a40..df3f52a403e7 100644 --- a/accounts/abi/bind/base.go +++ b/accounts/abi/bind/base.go @@ -373,6 +373,8 @@ func (c *BoundContract) transact(opts *TransactOpts, contract *common.Address, i ) if opts.GasPrice != nil { rawTx, err = c.createLegacyTx(opts, contract, input) + } else if opts.GasFeeCap != nil && opts.GasTipCap != nil { + rawTx, err = c.createDynamicTx(opts, contract, input, nil) } else { // Only query for basefee if gasPrice not specified if head, errHead := c.transactor.HeaderByNumber(ensureContext(opts.Context), nil); errHead != nil {