From 1de4ccd83d37d6f956362ca5937fca8502bd70c2 Mon Sep 17 00:00:00 2001 From: fossephate <matt.cfosse@gmail.com> Date: Wed, 25 Sep 2024 09:19:10 -0700 Subject: [PATCH] [skip ci] fix test net btc --- cw_bitcoin/lib/electrum_wallet.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cw_bitcoin/lib/electrum_wallet.dart b/cw_bitcoin/lib/electrum_wallet.dart index cf46ae2c8..3b07fd225 100644 --- a/cw_bitcoin/lib/electrum_wallet.dart +++ b/cw_bitcoin/lib/electrum_wallet.dart @@ -112,10 +112,17 @@ abstract class ElectrumWalletBase "To create a Wallet you need either a seed or an xpub. This should not happen"); } + print("currency: $currency"); + print("network: $network"); + print("seedBytes: $seedBytes"); + print("xpub: $xpub"); + print("derivationInfo: $derivationInfo"); + if (seedBytes != null) { switch (currency) { case CryptoCurrency.btc: case CryptoCurrency.ltc: + case CryptoCurrency.tbtc: return Bip32Slip10Secp256k1.fromSeed(seedBytes).derivePath( _hardenedDerivationPath(derivationInfo?.derivationPath ?? electrum_path)) as Bip32Slip10Secp256k1;