mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
minor fix [skip ci]
This commit is contained in:
parent
79ce2a6bb2
commit
c2362461f1
2 changed files with 4 additions and 3 deletions
|
@ -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";
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue