feat: add contract address display to AddressToken view
All checks were successful
check / check (push) Successful in 21s

Show the ERC-20 contract address in a grey well below the token balance.
Full address displayed with click-to-copy and Etherscan link.

Also fix pre-existing prettier formatting in transactions.js.

Closes #9
This commit is contained in:
2026-02-27 12:08:05 -08:00
parent 920f458db3
commit c633d75df4
3 changed files with 49 additions and 4 deletions

View File

@@ -358,6 +358,23 @@
</div>
</div>
<!-- contract address well -->
<div
id="address-token-contract-well"
class="hidden bg-gray-200 p-2 mb-3 text-xs"
>
<div class="text-muted mb-1">Contract Address</div>
<div class="flex items-center">
<span id="address-token-contract-dot"></span>
<span
id="address-token-contract-full"
class="break-all underline decoration-dashed cursor-pointer"
title="Click to copy"
></span>
<span id="address-token-contract-etherscan-link"></span>
</div>
</div>
<!-- actions -->
<div class="flex gap-2 mb-3">
<button