From d62935526388904b077f083d22b84ab0d0c6f308 Mon Sep 17 00:00:00 2001 From: James Duncombe Date: Wed, 13 Mar 2024 17:11:41 +0000 Subject: [PATCH] Fixes eth_fee_history behaviour spec. --- lib/tt_eth/behaviours/chain_client.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tt_eth/behaviours/chain_client.ex b/lib/tt_eth/behaviours/chain_client.ex index ad50e04..fce96ec 100644 --- a/lib/tt_eth/behaviours/chain_client.ex +++ b/lib/tt_eth/behaviours/chain_client.ex @@ -55,14 +55,14 @@ defmodule TTEth.Behaviours.ChainClient do @callback eth_fee_history( block_count :: integer(), - newest_block :: binary(), - reward_percentiles :: list(binary()) + newest_block :: binary() | integer(), + reward_percentiles :: list(non_neg_integer()) ) :: {:ok, map()} | error @callback eth_fee_history( block_count :: integer(), - newest_block :: binary(), - reward_percentiles :: list(binary()), + newest_block :: binary() | integer(), + reward_percentiles :: list(non_neg_integer()), opts ) :: {:ok, map()} | error