aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-21 16:32:56 -0700
committerAdam Soltys <[email protected]>2026-09-21 16:32:56 -0700
commitd0ad3a6590d783f1c88fb993ddc06d28ee0497b5 (patch)
tree3cca5ab6cc092a62a1df1baebdfd688b37afb16e /src
parent924040f3562502699d924caff4b34516a6beb87d (diff)
downloadcoinosv3-d0ad3a6590d783f1c88fb993ddc06d28ee0497b5.tar.gz
coinosv3-d0ad3a6590d783f1c88fb993ddc06d28ee0497b5.zip
Balance: a wallet opening starts its numbers fresh, never counting from the last account's.
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Tmfg8k5f3TbNJS34qiqHAp
Diffstat (limited to 'src')
-rw-r--r--src/app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js
index 96f47f9..a644cbd 100644
--- a/src/app.js
+++ b/src/app.js
@@ -1334,6 +1334,10 @@ async function openWallet(input, opts = {}) {
// Register a full (seed) wallet as an account and open it.
async function enterWallet(mnemonic, passphrase, opts = {}) {
+ // A wallet opening is a new set of numbers: the count-up animation must
+ // not run from the previous account's balance (a fresh wallet used to
+ // count DOWN from the old one to zero).
+ _amtLast.clear();
const acc = addOrGetAccount({
type: 'full',
label: defaultLabel('full'),