fix CR issue

pull/2196/head
Ayrat Badykov 5 years ago
parent 9bbec7b2cd
commit f9d7b022c2
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 9
      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}

Loading…
Cancel
Save