From 039303bfaa6c48e176ceaf9fd8a330de07f225db Mon Sep 17 00:00:00 2001 From: rockstardev Date: Sat, 23 Jun 2018 22:03:51 -0500 Subject: [PATCH] Fixing typos during code review --- BTCPayServer/Configuration/BTCPayServerOptions.cs | 2 +- BTCPayServer/Controllers/StoresController.LightningLike.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/Configuration/BTCPayServerOptions.cs b/BTCPayServer/Configuration/BTCPayServerOptions.cs index 2ed2e665d..9c7422828 100644 --- a/BTCPayServer/Configuration/BTCPayServerOptions.cs +++ b/BTCPayServer/Configuration/BTCPayServerOptions.cs @@ -81,7 +81,7 @@ namespace BTCPayServer.Configuration { throw new ConfigException($"Invalid setting {net.CryptoCode}.lightning, you need to pass either " + $"the absolute path to the unix socket of a running CLightning instance (eg. /root/.lightning/lightning-rpc), " + - $"or the url to a charge server with crendetials (eg. https://apitoken@API_TOKEN_SECRET:charge.example.com/)"); + $"or the url to a charge server with credentials (eg. https://apitoken@API_TOKEN_SECRET:charge.example.com/)"); } InternalLightningByCryptoCode.Add(net.CryptoCode, connectionString); } diff --git a/BTCPayServer/Controllers/StoresController.LightningLike.cs b/BTCPayServer/Controllers/StoresController.LightningLike.cs index 1b51b51b4..fdfef2acb 100644 --- a/BTCPayServer/Controllers/StoresController.LightningLike.cs +++ b/BTCPayServer/Controllers/StoresController.LightningLike.cs @@ -110,6 +110,7 @@ namespace BTCPayServer.Controllers }; paymentMethod.SetLightningUrl(connectionString); } + if (command == "save") { store.SetSupportedPaymentMethod(paymentMethodId, paymentMethod); @@ -135,7 +136,7 @@ namespace BTCPayServer.Controllers await handler.TestConnection(info, cts.Token); } } - vm.StatusMessage = $"Connection to the lightning node succeed ({info})"; + vm.StatusMessage = $"Connection to the lightning node succeeded ({info})"; } catch (Exception ex) {