From 75ee01e842954cfacc19aff7061ece6960fd15a1 Mon Sep 17 00:00:00 2001 From: protolambda Date: Tue, 16 Jan 2024 18:55:52 -0500 Subject: [PATCH] ethapi: handle fee-scalar receipt attribute --- internal/ethapi/api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index f75caa3caa..317bf9aa76 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -2031,7 +2031,9 @@ func marshalReceipt(receipt *types.Receipt, blockHash common.Hash, blockNumber u fields["l1GasPrice"] = (*hexutil.Big)(receipt.L1GasPrice) fields["l1GasUsed"] = (*hexutil.Big)(receipt.L1GasUsed) fields["l1Fee"] = (*hexutil.Big)(receipt.L1Fee) - fields["l1FeeScalar"] = receipt.FeeScalar.String() + if receipt.FeeScalar != nil { // removed in Ecotone + fields["l1FeeScalar"] = receipt.FeeScalar.String() + } } if chainConfig.Optimism != nil && tx.IsDepositTx() && receipt.DepositNonce != nil { fields["depositNonce"] = hexutil.Uint64(*receipt.DepositNonce)