minor fix [skip ci]

This commit is contained in:
Matthew Fosse 2024-05-02 14:09:28 -07:00
parent 79ce2a6bb2
commit c2362461f1
2 changed files with 4 additions and 3 deletions

View file

@ -173,14 +173,13 @@ abstract class LightningWalletBase extends ElectrumWallet with Store {
nodeConfig: breezNodeConfig,
);
// Customize the config object according to your needs
String workingDir = (await getApplicationDocumentsDirectory()).path;
workingDir = "$workingDir/wallets/lightning/${walletInfo.name}/breez/";
new Directory(workingDir).createSync(recursive: true);
breezConfig = breezConfig.copyWith(workingDir: workingDir);
// disconnect if already connected
try {
// disconnect if already connected
await sdk.disconnect();
} catch (_) {}
@ -211,7 +210,7 @@ abstract class LightningWalletBase extends ElectrumWallet with Store {
_isTransactionUpdating = false;
});
// // TODO: get actual nds service url:
// TODO: get actual nds service url:
// if (Platform.isAndroid || Platform.isIOS) {
// String platform = Platform.isAndroid ? "android" : "ios";
// String token = "TODO";

View file

@ -104,6 +104,8 @@ abstract class WalletRestoreViewModelBase extends WalletCreationVM with Store {
name: name,
mnemonic: seed,
password: password,
derivationPath: "",
derivationType: DerivationType.electrum,
);
case WalletType.haven:
return haven!.createHavenRestoreWalletFromSeedCredentials(