mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-31 06:55:59 +00:00
[skip ci] fix test net btc
This commit is contained in:
parent
6f2cb4dff5
commit
1de4ccd83d
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue