Greenfield: Can set the label when generating a wallet for store (#6186)

This commit is contained in:
Nicolas Dorier
2024-09-02 18:54:15 +09:00
committed by GitHub
parent 4a94074595
commit 1c027be106
5 changed files with 26 additions and 18 deletions

View File

@@ -937,17 +937,7 @@ namespace BTCPayServer.Controllers.Greenfield
{
return GetFromActionResult<GenerateOnChainWalletResponse>(
await GetController<GreenfieldStoreOnChainPaymentMethodsController>().GenerateOnChainWallet(storeId, Payments.PaymentMethodId.Parse(paymentMethodId),
new GenerateWalletRequest()
{
Passphrase = request.Passphrase,
AccountNumber = request.AccountNumber,
ExistingMnemonic = request.ExistingMnemonic?.ToString(),
WordCount = request.WordCount,
WordList = request.WordList,
SavePrivateKeys = request.SavePrivateKeys,
ScriptPubKeyType = request.ScriptPubKeyType,
ImportKeysToRPC = request.ImportKeysToRPC
}));
request));
}
public override async Task SendEmail(string storeId, SendEmailRequest request,