Show sending address on send page with color dot and ENS name
Some checks failed
check / check (push) Has been cancelled

This commit is contained in:
2026-02-26 03:47:48 +07:00
parent b8126c6080
commit 4ea5eeabda
2 changed files with 10 additions and 1 deletions

View File

@@ -1,12 +1,17 @@
// Send view: collect To, Amount, Token. Then go to confirmation.
const { $, showFlash } = require("./helpers");
const { $, showFlash, formatAddressHtml } = require("./helpers");
const { state, currentAddress } = require("../../shared/state");
const { getProvider } = require("../../shared/balances");
function updateSendBalance() {
const addr = currentAddress();
if (!addr) return;
$("send-from").innerHTML = formatAddressHtml(
addr.address,
addr.ensName || null,
null,
);
const token = $("send-token").value;
if (token === "ETH") {
$("send-balance").textContent =