Skip to content

Commit

Permalink
Format block_count in eth_feeHistory RPC to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
shuklaayush authored and fselmo committed Aug 30, 2021
1 parent 2b229d2 commit ddb8b39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web3/_utils/method_formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,10 @@ def apply_list_to_array_formatter(formatter: Any) -> Callable[..., Any]:

PYTHONIC_REQUEST_FORMATTERS: Dict[RPCEndpoint, Callable[..., Any]] = {
# Eth
RPC.eth_feeHistory: apply_formatter_at_index(to_hex_if_integer, 1),
RPC.eth_feeHistory: compose(
apply_formatter_at_index(to_hex_if_integer, 0),
apply_formatter_at_index(to_hex_if_integer, 1)
),
RPC.eth_getBalance: apply_formatter_at_index(to_hex_if_integer, 1),
RPC.eth_getBlockByNumber: apply_formatter_at_index(to_hex_if_integer, 0),
RPC.eth_getBlockTransactionCountByNumber: apply_formatter_at_index(
Expand Down

0 comments on commit ddb8b39

Please sign in to comment.