Skip to content

Commit

Permalink
Merge pull request #2386 from OffchainLabs/estimate-fee-greater-tip
Browse files Browse the repository at this point in the history
Make sure fee > tip in validator wallet estimateGas
  • Loading branch information
PlasmaPower authored Jun 13, 2024
2 parents c89a312 + b2c3fdd commit 5673881
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions staker/validatorwallet/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ func (v *Contract) estimateGas(ctx context.Context, value *big.Int, data []byte)
if err != nil {
return 0, fmt.Errorf("getting suggested gas tip cap: %w", err)
}
gasFeeCap.Add(gasFeeCap, gasTipCap)
g, err := v.l1Reader.Client().EstimateGas(
ctx,
ethereum.CallMsg{
Expand Down

0 comments on commit 5673881

Please sign in to comment.