fix nil input data

pull/1414/head
Ayrat Badykov 6 years ago
parent 64764d6c8f
commit d73c09ad87
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 6
      apps/explorer/lib/explorer/chain.ex

@ -1884,12 +1884,12 @@ defmodule Explorer.Chain do
cond do
is_nil(transaction) ->
nil
""
!is_nil(transaction.contracts_creation_internal_transaction) ->
transaction.contracts_creation_internal_transaction && transaction.contracts_creation_internal_transaction.input ->
Data.to_string(transaction.contracts_creation_internal_transaction.input)
!is_nil(transaction.contracts_creation_transaction) ->
transaction.contracts_creation_transaction && transaction.contracts_creation_transaction.input ->
Data.to_string(transaction.contracts_creation_transaction.input)
true ->

Loading…
Cancel
Save