change from 6 last to 6 first chars on the hash

pull/699/head
Gustavo Santos Ferreira 6 years ago
parent fe91cb3e47
commit 79dd6c0d79
  1. 2
      apps/block_scout_web/lib/block_scout_web/views/address_view.ex

@ -73,7 +73,7 @@ defmodule BlockScoutWeb.AddressView do
def token_title(%Token{name: nil, contract_address_hash: contract_address_hash}) do def token_title(%Token{name: nil, contract_address_hash: contract_address_hash}) do
contract_address_hash contract_address_hash
|> to_string |> to_string
|> String.slice(-6..-1) |> String.slice(0..5)
end end
def token_title(%Token{name: name, symbol: symbol}), do: "#{name}(#{symbol})" def token_title(%Token{name: name, symbol: symbol}), do: "#{name}(#{symbol})"

Loading…
Cancel
Save