Skip to content

Commit

Permalink
Fix GetL1GasPriceEstimate precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
edfelten committed Jul 12, 2022
1 parent 8d0bd20 commit aa099f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion precompiles/ArbGasInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ func (con ArbGasInfo) GetL1GasPriceEstimate(c ctx, evm mech) (huge, error) {
if err != nil {
return nil, err
}
return arbmath.BigMulByUint(ppu, params.TxDataNonZeroGasEIP2028), nil
if c.State.FormatVersion() < 2 {
ppu = arbmath.BigMulByUint(ppu, params.TxDataNonZeroGasEIP2028)
}
return ppu, nil
}

// Get the fee paid to the aggregator for posting this tx
Expand Down

0 comments on commit aa099f8

Please sign in to comment.