From 1770748a62f4fd3e2f14c1a4cf336490ff293626 Mon Sep 17 00:00:00 2001 From: redhdx <136775144+redhdx@users.noreply.github.com> Date: Tue, 12 Nov 2024 11:07:52 +0800 Subject: [PATCH] fix(op-geth): fix gasless receipt l1fee (#219) Co-authored-by: hongdexiang <1090664234@qq.com> --- core/types/receipt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/receipt.go b/core/types/receipt.go index 67c1addb3d..700440dba3 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -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