Minor syntax changes

This commit is contained in:
Dennis Reimann
2021-09-01 17:31:42 +02:00
committed by Andrew Camilleri
parent 3343738bb3
commit 0d08bd3ad1
2 changed files with 15 additions and 12 deletions

View File

@@ -817,9 +817,10 @@ namespace BTCPayServer.Controllers
SigningContext = model.SigningContext
});
}
private IActionResult RedirectToWalletPSBTReady(WalletPSBTReadyViewModel vm)
{
var redirectVm = new PostRedirectViewModel()
var redirectVm = new PostRedirectViewModel
{
AspController = "Wallets",
AspAction = nameof(WalletPSBTReady),
@@ -943,7 +944,7 @@ namespace BTCPayServer.Controllers
}
ModelState.Remove(nameof(viewModel.SigningContext.PSBT));
viewModel.SigningContext.PSBT = psbt.ToBase64();
return RedirectToWalletPSBTReady(new WalletPSBTReadyViewModel()
return RedirectToWalletPSBTReady(new WalletPSBTReadyViewModel
{
SigningKey = signingKey.GetWif(network.NBitcoinNetwork).ToString(),
SigningKeyPath = rootedKeyPath?.ToString(),