fix map access keys

pull/1370/head
Ayrat Badykov 6 years ago
parent d3c7c8636f
commit 98e0529d3f
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 3
      apps/explorer/lib/explorer/chain/import/runner/transactions.ex

@ -191,7 +191,8 @@ defmodule Explorer.Chain.Import.Runner.Transactions do
filters = filters =
transactions transactions
|> Enum.filter(fn transaction -> |> Enum.filter(fn transaction ->
transaction.block_hash && transaction.block_number && transaction.nonce && transaction.from_address_hash Map.get(transaction, :block_hash) && Map.get(transaction, :block_number) && Map.get(transaction, :nonce) &&
Map.get(transaction, :from_address_hash)
end) end)
|> Enum.map(fn transaction -> |> Enum.map(fn transaction ->
{transaction.nonce, transaction.from_address_hash} {transaction.nonce, transaction.from_address_hash}

Loading…
Cancel
Save