From 2c0c0678bd050c86e74c38d7ee93f947cdeddf52 Mon Sep 17 00:00:00 2001 From: gomes <17035424+gomesalexandre@users.noreply.github.com> Date: Thu, 5 Oct 2023 00:59:15 +0200 Subject: [PATCH] feat: improve commentary --- packages/hdwallet-ledger/src/bitcoin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/hdwallet-ledger/src/bitcoin.ts b/packages/hdwallet-ledger/src/bitcoin.ts index 624e0a48a..a71841a1c 100644 --- a/packages/hdwallet-ledger/src/bitcoin.ts +++ b/packages/hdwallet-ledger/src/bitcoin.ts @@ -75,8 +75,9 @@ export async function btcGetPublicKeys( // Ledger returns // - LTC pubkeys in Ltub format for all scriptTypes. // - BTC pubkeys in xpub format for all scriptTypes + // - Doge pubkeys in xpub format instead of dgub // They *are* the correct accounts, but not in the format we want. - // We need to convert SegWit pubkeys to Mtubs/xpubs, and SegWit native to zpubs. + // We need to convert SegWit pubkeys to Mtubs/ypubs, and SegWit native to zpubs, and Doge xpubs to dgubs. const xpub = convertXpubVersion(_xpub, scriptTypeToAccountType[getPublicKey.scriptType], getPublicKey.coin); xpubs.push({