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

@@ -277,6 +277,10 @@
< Back
</button>
<h2 class="font-bold mb-2">Send</h2>
<div class="mb-2">
<label class="block mb-1 text-xs text-muted">From</label>
<div id="send-from" class="text-xs mb-1"></div>
</div>
<div class="mb-2">
<label class="block mb-1">What to send</label>
<select

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 =