Skip to content

Commit a589775

Browse files
authored
Merge pull request #60 from siburu/price-bump-fix
Fix a bug, which uses magic number 10 instead of ChainConfig.PriceBump
2 parents 30310f2 + d709884 commit a589775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/relay/ethereum/gas.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (m *GasFeeCalculator) Apply(ctx context.Context, txOpts *bind.TransactOpts)
2929
minTipCap := common.Big0
3030
if m.config.PriceBump > 0 && txOpts.Nonce != nil {
3131
var err error
32-
if minFeeCap, minTipCap, err = txpool.GetMinimumRequiredFee(ctx, m.client.Client, txOpts.From, txOpts.Nonce.Uint64(), 10); err != nil {
32+
if minFeeCap, minTipCap, err = txpool.GetMinimumRequiredFee(ctx, m.client.Client, txOpts.From, txOpts.Nonce.Uint64(), m.config.PriceBump); err != nil {
3333
return err
3434
}
3535
}

0 commit comments

Comments
 (0)