Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
leejw51crypto committed Nov 17, 2021
1 parent bf5b1db commit fd382e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpc/ethereum/backend/feebackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (e *EVMBackend) FeeHistory(userBlockCount rpc.DecimalOrHex, /* number block
reward := make([][]*hexutil.Big, blockCount)
rewardcount := len(rewardPercentiles)
for i := 0; i < int(blockCount); i++ {
Reward[i] = make([]*hexutil.Big, rewardcount)
reward[i] = make([]*hexutil.Big, rewardcount)
}
thisBaseFee := make([]*hexutil.Big, blockCount)
thisGasUsedRatio := make([]float64, blockCount)
Expand Down Expand Up @@ -182,14 +182,14 @@ func (e *EVMBackend) FeeHistory(userBlockCount rpc.DecimalOrHex, /* number block
thisBaseFee[index] = (*hexutil.Big)(onefeehistory.BaseFee)
thisGasUsedRatio[index] = onefeehistory.GasUsedRatio
for j := 0; j < rewardcount; j++ {
Reward[index][j] = (*hexutil.Big)(onefeehistory.Reward[j])
reward[index][j] = (*hexutil.Big)(onefeehistory.Reward[j])
}

}

feeHistory := rpctypes.FeeHistoryResult{
OldestBlock: OldestBlock,
Reward: Reward,
OldestBlock: oldestBlock,
Reward: reward,
BaseFee: thisBaseFee,
GasUsedRatio: thisGasUsedRatio,
}
Expand Down

0 comments on commit fd382e7

Please sign in to comment.