|
|
@ -149,25 +149,23 @@ defmodule EthereumJSONRPC.Transaction do |
|
|
|
elixir_to_params(%{transaction | "input" => "0x"}) |
|
|
|
elixir_to_params(%{transaction | "input" => "0x"}) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def elixir_to_params( |
|
|
|
def elixir_to_params(%{ |
|
|
|
%{ |
|
|
|
"blockHash" => block_hash, |
|
|
|
"blockHash" => block_hash, |
|
|
|
"blockNumber" => block_number, |
|
|
|
"blockNumber" => block_number, |
|
|
|
"from" => from_address_hash, |
|
|
|
"from" => from_address_hash, |
|
|
|
"gas" => gas, |
|
|
|
"gas" => gas, |
|
|
|
"gasPrice" => gas_price, |
|
|
|
"gasPrice" => gas_price, |
|
|
|
"hash" => hash, |
|
|
|
"hash" => hash, |
|
|
|
"input" => input, |
|
|
|
"input" => input, |
|
|
|
"nonce" => nonce, |
|
|
|
"nonce" => nonce, |
|
|
|
"r" => r, |
|
|
|
"r" => r, |
|
|
|
"s" => s, |
|
|
|
"s" => s, |
|
|
|
"to" => to_address_hash, |
|
|
|
"to" => to_address_hash, |
|
|
|
"transactionIndex" => index, |
|
|
|
"transactionIndex" => index, |
|
|
|
"v" => v, |
|
|
|
"v" => v, |
|
|
|
"value" => value |
|
|
|
"value" => value |
|
|
|
}) do |
|
|
|
} = transaction |
|
|
|
%{ |
|
|
|
) do |
|
|
|
|
|
|
|
result = %{ |
|
|
|
|
|
|
|
block_hash: block_hash, |
|
|
|
block_hash: block_hash, |
|
|
|
block_number: block_number, |
|
|
|
block_number: block_number, |
|
|
|
from_address_hash: from_address_hash, |
|
|
|
from_address_hash: from_address_hash, |
|
|
|