From e2b20f95bb1860fdcc6585c60b1fe12b354af391 Mon Sep 17 00:00:00 2001 From: Gustavo Santos Ferreira Date: Thu, 25 Oct 2018 16:53:35 -0300 Subject: [PATCH] add new field to Receipt elixir_to_params --- apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex index ce1f4dc672..52af2031f4 100644 --- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/receipt.ex +++ b/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