From e6035849f9b88bdd8cd665b868bbe121fa77e538 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 27 Sep 2026 15:07:30 -0700 Subject: Copy: no more em dashes, anywhere people read. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Claude-Session: https://claude.ai/code/session_01VhUKyXKtsJ67QAFfb7QR9D --- src/wallet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wallet.js') 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); -- cgit v1.2.3