Skip to content

Commit

Permalink
fix(op-geth): fix gasless receipt l1fee (#219)
Browse files Browse the repository at this point in the history
Co-authored-by: hongdexiang <[email protected]>
  • Loading branch information
redhdx and Lredhdx authored Nov 12, 2024
1 parent 673e07e commit 1770748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/types/receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ func (rs Receipts) DeriveFields(config *params.ChainConfig, hash common.Hash, nu
rs[i].L1GasPrice = gasParams.l1BaseFee
rs[i].L1BlobBaseFee = gasParams.l1BlobBaseFee
rs[i].L1Fee, rs[i].L1GasUsed = gasParams.costFunc(txs[i].RollupCostData())
if txs[i].GasPrice().Cmp(big.NewInt(0)) == 0 && config.IsWright(time) {
if rs[i].EffectiveGasPrice.Cmp(big.NewInt(0)) == 0 && config.IsWright(time) {
rs[i].L1Fee = big.NewInt(0)
}
rs[i].FeeScalar = gasParams.feeScalar
Expand Down

0 comments on commit 1770748

Please sign in to comment.