diff --git a/src/popup/index.html b/src/popup/index.html
index dfb693e..970870f 100644
--- a/src/popup/index.html
+++ b/src/popup/index.html
@@ -230,19 +230,18 @@
class="font-bold mb-1 hidden flex items-center"
>
diff --git a/src/popup/views/addressDetail.js b/src/popup/views/addressDetail.js
index 83589ff..8cb3a03 100644
--- a/src/popup/views/addressDetail.js
+++ b/src/popup/views/addressDetail.js
@@ -19,6 +19,21 @@ const { updateSendBalance, renderSendTokenSelect } = require("./send");
const { log } = require("../../shared/log");
const QRCode = require("qrcode");
+const EXT_ICON =
+ `
` +
+ ``;
+
+function etherscanAddressLink(address) {
+ return `https://etherscan.io/address/${address}`;
+}
+
+function etherscanTxLink(hash) {
+ return `https://etherscan.io/tx/${hash}`;
+}
+
function show() {
const wallet = state.wallets[state.selectedWallet];
const addr = wallet.addresses[state.selectedAddress];
@@ -29,6 +44,9 @@ function show() {
$("address-dot").innerHTML = addressDotHtml(addr.address);
$("address-full").dataset.full = addr.address;
$("address-full").textContent = addr.address;
+ const addrLink = etherscanAddressLink(addr.address);
+ $("address-etherscan-link").innerHTML =
+ `
${EXT_ICON}`;
$("address-usd-total").textContent = formatUsd(getAddressValueUsd(addr));
const ensEl = $("address-ens");
if (addr.ensName) {
@@ -178,21 +196,6 @@ function renderTransactions(txs) {
});
}
-function etherscanAddressLink(address) {
- return `https://etherscan.io/address/${address}`;
-}
-
-function etherscanTxLink(hash) {
- return `https://etherscan.io/tx/${hash}`;
-}
-
-const EXT_ICON =
- `
` +
- ``;
-
function copyableHtml(text, extraClass) {
const cls =
"underline decoration-dashed cursor-pointer" +