Skip to content

Commit

Permalink
Fix transation lookup inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix authored and samuelmanzanera committed Dec 2, 2022
1 parent 88ead12 commit 36e524b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/archethic/contracts/transaction_lookup.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ defmodule Archethic.Contracts.TransactionLookup do
case :ets.lookup(@table_name, contract_address) do
[] ->
DB.get_inputs(:call, contract_address)
|> Enum.map(fn %VersionedTransactionInput{
input: %TransactionInput{from: from, timestamp: timestamp},
protocol_version: protocol_version
} ->
{from, timestamp, protocol_version}
end)

inputs ->
Enum.map(inputs, fn {_, tx_address, tx_timestamp, protocol_version} ->
Expand Down

0 comments on commit 36e524b

Please sign in to comment.