mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
fix the transact method
This commit is contained in:
parent
b708feb9c3
commit
1c9aee0c39
1 changed files with 0 additions and 2 deletions
|
|
@ -416,8 +416,6 @@ 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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue