You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Plugins/Monero/Controllers/MoneroLikeStoreController.cs
+20-87Lines changed: 20 additions & 87 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,7 @@
1
1
usingSystem;
2
2
usingSystem.Collections.Generic;
3
3
usingSystem.ComponentModel.DataAnnotations;
4
-
usingSystem.Diagnostics;
5
4
usingSystem.Globalization;
6
-
usingSystem.IO;
7
5
usingSystem.Linq;
8
6
usingSystem.Threading.Tasks;
9
7
@@ -21,7 +19,6 @@
21
19
usingBTCPayServer.Services.Stores;
22
20
23
21
usingMicrosoft.AspNetCore.Authorization;
24
-
usingMicrosoft.AspNetCore.Http;
25
22
usingMicrosoft.AspNetCore.Mvc;
26
23
usingMicrosoft.AspNetCore.Mvc.Rendering;
27
24
usingMicrosoft.Extensions.Localization;
@@ -183,22 +180,22 @@ public async Task<IActionResult> GetStoreMoneroLikePaymentMethod(MoneroLikePayme
183
180
}
184
181
185
182
}
186
-
elseif(command=="upload-wallet")
183
+
elseif(command=="set-wallet-details")
187
184
{
188
185
varvalid=true;
189
-
if(viewModel.WalletFile==null)
186
+
if(viewModel.PrimaryAddress==null)
190
187
{
191
-
ModelState.AddModelError(nameof(viewModel.WalletFile),StringLocalizer["Please select the view-only wallet file"]);
188
+
ModelState.AddModelError(nameof(viewModel.PrimaryAddress),StringLocalizer["Please set your primary public address"]);
192
189
valid=false;
193
190
}
194
-
if(viewModel.WalletKeysFile==null)
191
+
if(viewModel.PrivateViewKey==null)
195
192
{
196
-
ModelState.AddModelError(nameof(viewModel.WalletKeysFile),StringLocalizer["Please select the view-only wallet keys file"]);
193
+
ModelState.AddModelError(nameof(viewModel.PrivateViewKey),StringLocalizer["Please set your private view key"]);
197
194
valid=false;
198
195
}
199
196
if(configurationItem.WalletDirectory==null)
200
197
{
201
-
ModelState.AddModelError(nameof(viewModel.WalletFile),StringLocalizer["This installation doesn't support wallet import (BTCPAY_XMR_WALLET_DAEMON_WALLETDIR is not set)"]);
198
+
ModelState.AddModelError(nameof(viewModel.PrimaryAddress),StringLocalizer["This installation doesn't support wallet creation (BTCPAY_XMR_WALLET_DAEMON_WALLETDIR is not set)"]);
202
199
valid=false;
203
200
}
204
201
if(valid)
@@ -216,71 +213,31 @@ public async Task<IActionResult> GetStoreMoneroLikePaymentMethod(MoneroLikePayme
0 commit comments