Skip to content

Commit b031b01

Browse files
authored
Merge pull request #313 from OffchainLabs/fix-fee-history
Fix eth_feeHistory gasUsedRatio
2 parents 01a3566 + 291b34f commit b031b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arbitrum/apibackend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func (a *APIBackend) FeeHistory(
282282
currentTimestampGasUsed = 0
283283
}
284284

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

0 commit comments

Comments
 (0)