|
|
@ -108,7 +108,13 @@ defmodule BlockScoutWeb.AddressController do |
|
|
|
|
|
|
|
|
|
|
|
defp transaction_count(address) do |
|
|
|
defp transaction_count(address) do |
|
|
|
if contract?(address) do |
|
|
|
if contract?(address) do |
|
|
|
Chain.address_to_incoming_transaction_count(address.hash) |
|
|
|
incoming_transaction_count = Chain.address_to_incoming_transaction_count(address.hash) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if incoming_transaction_count == 0 do |
|
|
|
|
|
|
|
Chain.total_transactions_sent_by_address(address.hash) |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
incoming_transaction_count |
|
|
|
|
|
|
|
end |
|
|
|
else |
|
|
|
else |
|
|
|
Chain.total_transactions_sent_by_address(address.hash) |
|
|
|
Chain.total_transactions_sent_by_address(address.hash) |
|
|
|
end |
|
|
|
end |
|
|
|