diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/http.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/http.ex index f660da4ab4..0fd8804980 100644 --- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/http.ex +++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/http.ex @@ -7,8 +7,6 @@ defmodule EthereumJSONRPC.HTTP do require Logger - import EthereumJSONRPC, only: [quantity_to_integer: 1] - @behaviour Transport @doc """ @@ -134,12 +132,7 @@ defmodule EthereumJSONRPC.HTTP do # validated, so we can indicate that with switch to atom keys. defp standardize_response(%{"jsonrpc" => "2.0" = jsonrpc, "id" => id} = unstandardized) do # Nethermind return string ids - id = - if is_binary(id) do - quantity_to_integer(id) - else - id - end + id = quantity_to_integer(id) standardized = %{jsonrpc: jsonrpc, id: id}