Skip to content

Commit

Permalink
Merge pull request bnb-chain#219 from ethereum-optimism/fix-ecotone-f…
Browse files Browse the repository at this point in the history
…eescalar

ethapi: handle fee-scalar receipt attribute
  • Loading branch information
ajsutton authored Jan 17, 2024
2 parents 98cdc6b + 75ee01e commit d5f142e
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 d5f142e

Please sign in to comment.