Use from/to fields from transaction instead of receipt

Transaction receipt from cpp-ethereum doesn't contain these fields.
pull/1857/head
goodsoft 6 years ago
parent 89f29e67bc
commit c608664601
No known key found for this signature in database
GPG Key ID: DF5159A3A5F09D21
  1. 4
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/geth/tracer.ex

@ -7,8 +7,8 @@ defmodule EthereumJSONRPC.Geth.Tracer do
import EthereumJSONRPC, only: [integer_to_quantity: 1, quantity_to_integer: 1] import EthereumJSONRPC, only: [integer_to_quantity: 1, quantity_to_integer: 1]
def replay(%{"structLogs" => logs} = result, receipt, tx) when is_list(logs) do def replay(%{"structLogs" => logs} = result, receipt, tx) when is_list(logs) do
%{"from" => from, "to" => to, "contractAddress" => contract_address, "gasUsed" => gas_used} = receipt %{"contractAddress" => contract_address, "gasUsed" => gas_used} = receipt
%{"value" => value, "input" => input, "gas" => gas} = tx %{"from" => from, "to" => to, "value" => value, "input" => input, "gas" => gas} = tx
top = top =
to to

Loading…
Cancel
Save