[skip ci] fix test net btc

This commit is contained in:
fossephate 2024-09-25 09:19:10 -07:00
parent 6f2cb4dff5
commit 1de4ccd83d

View file

@ -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;