diff --git a/snippets/dart_snippets/lib/production.dart b/snippets/dart_snippets/lib/production.dart index eae8eba..9ee4e3b 100644 --- a/snippets/dart_snippets/lib/production.dart +++ b/snippets/dart_snippets/lib/production.dart @@ -6,8 +6,8 @@ import 'package:breez_sdk/bridge_generated.dart'; NodeConfig productionNodeConfig() { // ANCHOR: moving-to-production // Read your Greenlight credentials from secure storage - Uint8List deviceKey = Uint8List(); - Uint8List deviceCert = Uint8List(); + Uint8List deviceKey = Uint8List(0); + Uint8List deviceCert = Uint8List(0); GreenlightCredentials greenlightCredentials = GreenlightCredentials(deviceKey, deviceCert); NodeConfig nodeConfig = NodeConfig.greenlight( @@ -17,5 +17,5 @@ NodeConfig productionNodeConfig() { ), ); // ANCHOR_END: moving-to-production - return nodeConfig + return nodeConfig; } diff --git a/snippets/go/production.go b/snippets/go/production.go index 94e9f63..afc7d6e 100644 --- a/snippets/go/production.go +++ b/snippets/go/production.go @@ -12,7 +12,7 @@ func ProductionNodeConfig() breez_sdk.NodeConfig { greenlightCredentials := breez_sdk.GreenlightCredentials{ DeviceKey: deviceKey, DeviceCert: deviceCert, - }; + } nodeConfig := breez_sdk.NodeConfigGreenlight{ Config: breez_sdk.GreenlightNodeConfig{