add new field to Receipt elixir_to_params

pull/998/head
Gustavo Santos Ferreira 6 years ago
parent cf1be63b60
commit e2b20f95bb
  1. 3
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex

@ -108,6 +108,7 @@ defmodule EthereumJSONRPC.Receipt do
@spec elixir_to_params(elixir) :: %{
cumulative_gas_used: non_neg_integer,
gas_used: non_neg_integer,
created_contract_address_hash: String.t() | nil,
status: Status.t(),
transaction_hash: String.t(),
transaction_index: non_neg_integer()
@ -116,6 +117,7 @@ defmodule EthereumJSONRPC.Receipt do
%{
"cumulativeGasUsed" => cumulative_gas_used,
"gasUsed" => gas_used,
"contractAddress" => created_contract_address_hash,
"transactionHash" => transaction_hash,
"transactionIndex" => transaction_index
} = elixir
@ -125,6 +127,7 @@ defmodule EthereumJSONRPC.Receipt do
%{
cumulative_gas_used: cumulative_gas_used,
gas_used: gas_used,
created_contract_address_hash: created_contract_address_hash,
status: status,
transaction_hash: transaction_hash,
transaction_index: transaction_index

Loading…
Cancel
Save