diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go index bdc479537d9b..36472f81fe18 100644 --- a/accounts/abi/bind/base.go +++ b/accounts/abi/bind/base.go @@ -377,6 +377,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 {