Skip to content

Commit

Permalink
Merge pull request OffchainLabs#313 from OffchainLabs/fix-fee-history
Browse files Browse the repository at this point in the history
Fix eth_feeHistory gasUsedRatio
  • Loading branch information
PlasmaPower authored May 2, 2024
2 parents 01a3566 + 291b34f commit b031b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arbitrum/apibackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func (a *APIBackend) FeeHistory(
currentTimestampGasUsed = 0
}

receipts := a.BlockChain().GetReceiptsByHash(header.ReceiptHash)
receipts := a.BlockChain().GetReceiptsByHash(header.Hash())
for _, receipt := range receipts {
if receipt.GasUsed > receipt.GasUsedForL1 {
currentTimestampGasUsed += receipt.GasUsed - receipt.GasUsedForL1
Expand Down

0 comments on commit b031b01

Please sign in to comment.