|
|
@ -257,8 +257,10 @@ defmodule EthereumJSONRPC.Transaction do |
|
|
|
# double check that no new keys are being missed by requiring explicit match for passthrough |
|
|
|
# double check that no new keys are being missed by requiring explicit match for passthrough |
|
|
|
# `t:EthereumJSONRPC.address/0` and `t:EthereumJSONRPC.hash/0` pass through as `Explorer.Chain` can verify correct |
|
|
|
# `t:EthereumJSONRPC.address/0` and `t:EthereumJSONRPC.hash/0` pass through as `Explorer.Chain` can verify correct |
|
|
|
# hash format |
|
|
|
# hash format |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# "txType": to avoid FunctionClauseError when indexing Wanchain |
|
|
|
defp entry_to_elixir({key, value}) |
|
|
|
defp entry_to_elixir({key, value}) |
|
|
|
when key in ~w(blockHash condition creates from hash input jsonrpc publicKey raw to), |
|
|
|
when key in ~w(blockHash condition creates from hash input jsonrpc publicKey raw to txType), |
|
|
|
do: {key, value} |
|
|
|
do: {key, value} |
|
|
|
|
|
|
|
|
|
|
|
defp entry_to_elixir({key, quantity}) when key in ~w(gas gasPrice nonce r s standardV v value) and quantity != nil do |
|
|
|
defp entry_to_elixir({key, quantity}) when key in ~w(gas gasPrice nonce r s standardV v value) and quantity != nil do |
|
|
|