diff --git a/cw_lightning/lib/lightning_wallet.dart b/cw_lightning/lib/lightning_wallet.dart index 1a741bd62..db7db19ac 100644 --- a/cw_lightning/lib/lightning_wallet.dart +++ b/cw_lightning/lib/lightning_wallet.dart @@ -211,14 +211,14 @@ abstract class LightningWalletBase extends ElectrumWallet with Store { _isTransactionUpdating = false; }); - // TODO: get actual nds service url: - if (Platform.isAndroid || Platform.isIOS) { - String platform = Platform.isAndroid ? "android" : "ios"; - String token = "TODO"; - await sdk.registerWebhook( - webhookUrl: "https://your-nds-service.com/notify?platform=$platform&token=$token", - ); - } + // // TODO: get actual nds service url: + // if (Platform.isAndroid || Platform.isIOS) { + // String platform = Platform.isAndroid ? "android" : "ios"; + // String token = "TODO"; + // await sdk.registerWebhook( + // webhookUrl: "https://your-nds-service.com/notify?platform=$platform&token=$token", + // ); + // } print("initialized breez: ${(await sdk.isInitialized())}"); } diff --git a/cw_lightning/lib/lightning_wallet_service.dart b/cw_lightning/lib/lightning_wallet_service.dart index a458f9efa..c8c5da12e 100644 --- a/cw_lightning/lib/lightning_wallet_service.dart +++ b/cw_lightning/lib/lightning_wallet_service.dart @@ -26,7 +26,7 @@ class LightningWalletService extends WalletService create(BitcoinNewWalletCredentials credentials, {bool? isTestnet}) async { final wallet = await LightningWalletBase.create( - mnemonic: await generateMnemonic(), + mnemonic: await generateElectrumMnemonic(), password: credentials.password!, walletInfo: credentials.walletInfo!, unspentCoinsInfo: unspentCoinsInfoSource, diff --git a/cw_lightning/pubspec.yaml b/cw_lightning/pubspec.yaml index ee54d8547..7da69bd6a 100644 --- a/cw_lightning/pubspec.yaml +++ b/cw_lightning/pubspec.yaml @@ -32,7 +32,7 @@ dependencies: breez_sdk: git: url: https://github.com/breez/breez-sdk-flutter.git - ref: v0.4.0-rc2 + ref: v0.4.0-rc5 rxdart: ^0.27.5 unorm_dart: ^0.2.0 cryptography: ^2.0.5 diff --git a/pubspec_base.yaml b/pubspec_base.yaml index ad879e08f..7b4bc5943 100644 --- a/pubspec_base.yaml +++ b/pubspec_base.yaml @@ -115,7 +115,7 @@ dependencies: breez_sdk: git: url: https://github.com/breez/breez-sdk-flutter.git - ref: v0.4.0-rc2 + ref: v0.4.0-rc5 dev_dependencies: