chainId -> chain_id for elixir variable

pull/848/head
Luke Imhoff 6 years ago
parent 23406f6655
commit b93377cccd
  1. 8
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/transaction.ex

@ -242,10 +242,10 @@ defmodule EthereumJSONRPC.Transaction do
end
# chainId is *sometimes* nil
defp entry_to_elixir({"chainId" = key, chainId}) do
case chainId do
nil -> {key, chainId}
_ -> {key, quantity_to_integer(chainId)}
defp entry_to_elixir({"chainId" = key, chain_id}) do
case chain_id do
nil -> {key, chain_id}
_ -> {key, quantity_to_integer(chain_id)}
end
end
end

Loading…
Cancel
Save