diff --git a/apps/explorer/lib/explorer/chain.ex b/apps/explorer/lib/explorer/chain.ex index e58953404d..40b6a8c20d 100644 --- a/apps/explorer/lib/explorer/chain.ex +++ b/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 ->