mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-02-26 04:50:28 +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");
|
"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) {
|
if (seedBytes != null) {
|
||||||
switch (currency) {
|
switch (currency) {
|
||||||
case CryptoCurrency.btc:
|
case CryptoCurrency.btc:
|
||||||
case CryptoCurrency.ltc:
|
case CryptoCurrency.ltc:
|
||||||
|
case CryptoCurrency.tbtc:
|
||||||
return Bip32Slip10Secp256k1.fromSeed(seedBytes).derivePath(
|
return Bip32Slip10Secp256k1.fromSeed(seedBytes).derivePath(
|
||||||
_hardenedDerivationPath(derivationInfo?.derivationPath ?? electrum_path))
|
_hardenedDerivationPath(derivationInfo?.derivationPath ?? electrum_path))
|
||||||
as Bip32Slip10Secp256k1;
|
as Bip32Slip10Secp256k1;
|
||||||
|
|
Loading…
Reference in a new issue