minor fix

This commit is contained in:
Matthew Fosse 2024-04-26 15:47:10 -07:00
parent 38e34ec648
commit 7b49b2ad87

View file

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