Skip to content

Commit

Permalink
ethapi: handle fee-scalar receipt attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
protolambda committed Jan 16, 2024
1 parent 98cdc6b commit 75ee01e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75ee01e

Please sign in to comment.