diff --git a/lib/bitcoin/cw_bitcoin.dart b/lib/bitcoin/cw_bitcoin.dart index 008744a05..e29332bc4 100644 --- a/lib/bitcoin/cw_bitcoin.dart +++ b/lib/bitcoin/cw_bitcoin.dart @@ -287,17 +287,17 @@ class CWBitcoin extends Bitcoin { }) async { List 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 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);