Skip to content

Commit

Permalink
fix: add coin_balance_status to address_validations
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Feb 20, 2019
1 parent 845f0bd commit 3f17c1f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ defmodule BlockScoutWeb.AddressValidationController do
alias BlockScoutWeb.BlockView
alias Explorer.ExchangeRates.Token
alias Explorer.{Chain, Market}
alias Indexer.CoinBalance.OnDemandFetcher
alias Phoenix.View

def index(conn, %{"address_id" => address_hash_string, "type" => "JSON"} = params) do
Expand Down Expand Up @@ -75,6 +76,7 @@ defmodule BlockScoutWeb.AddressValidationController do
conn,
"index.html",
address: address,
coin_balance_status: OnDemandFetcher.trigger_fetch(address),
current_path: current_path(conn),
transaction_count: transaction_count(address),
validation_count: validation_count(address),
Expand Down

0 comments on commit 3f17c1f

Please sign in to comment.