Skip to content

Commit

Permalink
fix swapped fee/tip parameters to estimateGas
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Bayardo committed Dec 12, 2023
1 parent 10425c1 commit b90ca56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions op-service/txmgr/txmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ func (m *SimpleTxManager) craftTx(ctx context.Context, candidate TxCandidate) (*
gas, err := m.backend.EstimateGas(ctx, ethereum.CallMsg{
From: m.cfg.From,
To: candidate.To,
GasFeeCap: gasFeeCap,
GasTipCap: gasTipCap,
GasFeeCap: gasFeeCap,
Data: rawTx.Data,
Value: rawTx.Value,
})
Expand Down Expand Up @@ -535,8 +535,8 @@ func (m *SimpleTxManager) increaseGasPrice(ctx context.Context, tx *types.Transa
gas, err := m.backend.EstimateGas(ctx, ethereum.CallMsg{
From: m.cfg.From,
To: rawTx.To,
GasFeeCap: bumpedTip,
GasTipCap: bumpedFee,
GasTipCap: bumpedTip,
GasFeeCap: bumpedFee,
Data: rawTx.Data,
})
if err != nil {
Expand Down

0 comments on commit b90ca56

Please sign in to comment.