Skip to content

Commit

Permalink
Merge pull request #60 from siburu/price-bump-fix
Browse files Browse the repository at this point in the history
Fix a bug, which uses magic number 10 instead of ChainConfig.PriceBump
  • Loading branch information
siburu authored Dec 26, 2024
2 parents 30310f2 + d709884 commit a589775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/relay/ethereum/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (m *GasFeeCalculator) Apply(ctx context.Context, txOpts *bind.TransactOpts)
minTipCap := common.Big0
if m.config.PriceBump > 0 && txOpts.Nonce != nil {
var err error
if minFeeCap, minTipCap, err = txpool.GetMinimumRequiredFee(ctx, m.client.Client, txOpts.From, txOpts.Nonce.Uint64(), 10); err != nil {
if minFeeCap, minTipCap, err = txpool.GetMinimumRequiredFee(ctx, m.client.Client, txOpts.From, txOpts.Nonce.Uint64(), m.config.PriceBump); err != nil {
return err
}
}
Expand Down

0 comments on commit a589775

Please sign in to comment.