Skip to content

Commit

Permalink
Fix transation lookup inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix committed Dec 2, 2022
1 parent f15faca commit e01f9dd
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 e01f9dd

Please sign in to comment.