|
|
@ -9,7 +9,7 @@ defmodule BlockScoutWeb.AddressInternalTransactionController do |
|
|
|
|
|
|
|
|
|
|
|
alias BlockScoutWeb.{AccessHelpers, Controller, InternalTransactionView} |
|
|
|
alias BlockScoutWeb.{AccessHelpers, Controller, InternalTransactionView} |
|
|
|
alias Explorer.{Chain, Market} |
|
|
|
alias Explorer.{Chain, Market} |
|
|
|
alias Explorer.Chain.Address |
|
|
|
alias Explorer.Chain.{Address, Wei} |
|
|
|
alias Explorer.ExchangeRates.Token |
|
|
|
alias Explorer.ExchangeRates.Token |
|
|
|
alias Indexer.Fetcher.CoinBalanceOnDemand |
|
|
|
alias Indexer.Fetcher.CoinBalanceOnDemand |
|
|
|
alias Phoenix.View |
|
|
|
alias Phoenix.View |
|
|
@ -94,7 +94,13 @@ defmodule BlockScoutWeb.AddressInternalTransactionController do |
|
|
|
|
|
|
|
|
|
|
|
{:error, :not_found} -> |
|
|
|
{:error, :not_found} -> |
|
|
|
{:ok, address_hash} = Chain.string_to_address_hash(address_hash_string) |
|
|
|
{:ok, address_hash} = Chain.string_to_address_hash(address_hash_string) |
|
|
|
address = %Chain.Address{hash: address_hash, smart_contract: nil, token: nil} |
|
|
|
|
|
|
|
|
|
|
|
address = %Chain.Address{ |
|
|
|
|
|
|
|
hash: address_hash, |
|
|
|
|
|
|
|
smart_contract: nil, |
|
|
|
|
|
|
|
token: nil, |
|
|
|
|
|
|
|
fetched_coin_balance: %Wei{value: Decimal.new(0)} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
case Chain.Hash.Address.validate(address_hash_string) do |
|
|
|
case Chain.Hash.Address.validate(address_hash_string) do |
|
|
|
{:ok, _} -> |
|
|
|
{:ok, _} -> |
|
|
|