mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
minor fix
This commit is contained in:
parent
38e34ec648
commit
7b49b2ad87
1 changed files with 11 additions and 11 deletions
|
@ -287,17 +287,17 @@ class CWBitcoin extends Bitcoin {
|
|||
}) async {
|
||||
List<DerivationInfo> list = [];
|
||||
|
||||
// var types = await compareDerivationMethods(mnemonic: mnemonic, node: node);
|
||||
// if (types.length == 1 && types.first == DerivationType.electrum) {
|
||||
// return [
|
||||
// DerivationInfo(
|
||||
// derivationType: DerivationType.electrum,
|
||||
// derivationPath: "m/0'/0",
|
||||
// description: "Electrum",
|
||||
// scriptType: "p2wpkh",
|
||||
// )
|
||||
// ];
|
||||
// }
|
||||
List<DerivationType> types = await compareDerivationMethods(mnemonic: mnemonic, node: node);
|
||||
if (types.length == 1 && types.first == DerivationType.electrum) {
|
||||
return [
|
||||
DerivationInfo(
|
||||
derivationType: DerivationType.electrum,
|
||||
derivationPath: "m/0'",
|
||||
description: "Electrum",
|
||||
scriptType: "p2wpkh",
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
final electrumClient = ElectrumClient();
|
||||
await electrumClient.connectToUri(node.uri);
|
||||
|
|
Loading…
Reference in a new issue