From 9620fee53f630efcc4b6a2c0cd9f22bfcb376928 Mon Sep 17 00:00:00 2001 From: jangko Date: Mon, 15 Apr 2024 17:20:33 +0700 Subject: [PATCH] Change some FeeHistoryResult field types from Quantity to UInt256 --- web3/eth_api_types.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web3/eth_api_types.nim b/web3/eth_api_types.nim index b699faa..f532725 100644 --- a/web3/eth_api_types.nim +++ b/web3/eth_api_types.nim @@ -248,16 +248,16 @@ type of bidAlias: alias*: string - FeeHistoryReward* = array[2, Quantity] + FeeHistoryReward* = seq[UInt256] # https://github.com/ethereum/execution-apis/blob/90a46e9137c89d58e818e62fa33a0347bba50085/src/eth/fee_market.yaml#L50 FeeHistoryResult* = object oldestBlock*: Quantity - baseFeePerGas*: seq[Quantity] - baseFeePerBlobGas*: seq[Quantity] + baseFeePerGas*: seq[UInt256] + baseFeePerBlobGas*: seq[UInt256] gasUsedRatio*: seq[float64] blobGasUsedRatio*: seq[float64] - reward*: seq[FeeHistoryReward] + reward*: Option[seq[FeeHistoryReward]] {.push raises: [].}