From 5e129ec6d2e4232e8dc26db112a738941803113a Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Tue, 25 Jun 2024 10:51:13 -0700 Subject: [PATCH] fix breaking changes from update --- cw_lightning/lib/lightning_wallet.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cw_lightning/lib/lightning_wallet.dart b/cw_lightning/lib/lightning_wallet.dart index 0d5944514..ffd6d2e62 100644 --- a/cw_lightning/lib/lightning_wallet.dart +++ b/cw_lightning/lib/lightning_wallet.dart @@ -186,12 +186,10 @@ abstract class LightningWalletBase extends ElectrumWallet with Store { // sdk.logStream.listen((LogEntry event) { // print("Breez log: ${event.line}"); // }); - - Uint8List deviceKey = base64.decode(secrets.greenlightKey); - Uint8List deviceCert = base64.decode(secrets.greenlightCert); + GreenlightCredentials greenlightCredentials = GreenlightCredentials( - deviceKey: deviceKey, - deviceCert: deviceCert, + developerKey: base64.decode(secrets.greenlightKey), + developerCert: base64.decode(secrets.greenlightCert), ); NodeConfig breezNodeConfig = NodeConfig.greenlight(