rpc: remove DecimalOrHex type (#26629)

It's the same as math.HexOrDecimal64, which has more uses across the codebase.
This commit is contained in:
Felix Lange
2023-02-07 15:44:27 +01:00
committed by GitHub
parent cefc0fa00f
commit 31d401ea68
2 changed files with 1 additions and 22 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ type feeHistoryResult struct {
}
// FeeHistory returns the fee market history.
func (s *EthereumAPI) FeeHistory(ctx context.Context, blockCount rpc.DecimalOrHex, lastBlock rpc.BlockNumber, rewardPercentiles []float64) (*feeHistoryResult, error) {
func (s *EthereumAPI) FeeHistory(ctx context.Context, blockCount math.HexOrDecimal64, lastBlock rpc.BlockNumber, rewardPercentiles []float64) (*feeHistoryResult, error) {
oldest, reward, baseFee, gasUsed, err := s.b.FeeHistory(ctx, int(blockCount), lastBlock, rewardPercentiles)
if err != nil {
return nil, err