aboutsummaryrefslogtreecommitdiffstats
path: root/src/wallet.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-27 15:07:30 -0700
committerAdam Soltys <[email protected]>2026-09-27 15:07:30 -0700
commite6035849f9b88bdd8cd665b868bbe121fa77e538 (patch)
treeb575589cf8757cfd61e25db2cdd24b106a8befff /src/wallet.js
parent3da7f9d52dee6a535190cd5e0db152a3689c7e8e (diff)
downloadcoinosv3-e6035849f9b88bdd8cd665b868bbe121fa77e538.tar.gz
coinosv3-e6035849f9b88bdd8cd665b868bbe121fa77e538.zip
Copy: no more em dashes, anywhere people read.
Every English string, the translations, the README and the messages the code shows people now break with a full stop, a colon or a comma instead. Only console logs and the "—" placeholder for an empty cell keep the dash. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01VhUKyXKtsJ67QAFfb7QR9D
Diffstat (limited to 'src/wallet.js')
-rw-r--r--src/wallet.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet.js b/src/wallet.js
index 9eb2b94..8b88477 100644
--- a/src/wallet.js
+++ b/src/wallet.js
@@ -1034,7 +1034,7 @@ export class Wallet {
// signed manually with d = spend_priv + t_k (the output key is used raw, with
// no BIP-341 tweak, so btc-signer's auto key-path signing doesn't apply).
sign(tx) {
- if (this.watchOnly) throw new Error('Watch-only wallet — no keys to sign with.');
+ if (this.watchOnly) throw new Error('Watch-only wallet: no keys to sign with.');
const bip84 = new Map();
for (const u of this.utxos) bip84.set(utxoId(u), u);
// Prevout scripts + amounts, for any signer that needs a taproot sighash.
@@ -1991,7 +1991,7 @@ export function parseExtendedKey(s) {
let kind, norm;
if (ver === hex.encode(_XPUB_VER) || ver === hex.encode(_ZPUB_VER)) { kind = 'xpub'; norm = _XPUB_VER; }
else if (ver === hex.encode(_XPRV_VER) || ver === hex.encode(_ZPRV_VER)) { kind = 'xprv'; norm = _XPRV_VER; }
- else throw new Error('Unrecognized key type — use a native-segwit xpub/zpub or xprv/zprv.');
+ else throw new Error('Unrecognized key type. Use a native-segwit xpub/zpub or xprv/zprv.');
const out = new Uint8Array(data);
out.set(norm, 0);
const key = _b58c.encode(out);