mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
The signing context should not be passed to PSBT screen
This commit is contained in:
@@ -100,8 +100,7 @@ namespace BTCPayServer.Controllers
|
||||
ModelState.AddModelError(nameof(vm.PSBT), "Invalid PSBT");
|
||||
return View(vm);
|
||||
}
|
||||
|
||||
var res = await TryHandleSigningCommands(walletId, psbt, command, vm.SigningContext);
|
||||
var res = await TryHandleSigningCommands(walletId, psbt, command, new SigningContextModel(psbt));
|
||||
if (res != null)
|
||||
{
|
||||
return res;
|
||||
@@ -129,18 +128,14 @@ namespace BTCPayServer.Controllers
|
||||
return RedirectToWalletPSBT(new WalletPSBTViewModel()
|
||||
{
|
||||
PSBT = psbt.ToBase64(),
|
||||
FileName = vm.FileName,
|
||||
SigningContext = vm.SigningContext
|
||||
FileName = vm.FileName
|
||||
});
|
||||
|
||||
case "broadcast":
|
||||
{
|
||||
return RedirectToWalletPSBTReady(new WalletPSBTReadyViewModel()
|
||||
{
|
||||
SigningContext = new SigningContextModel()
|
||||
{
|
||||
PSBT = psbt.ToBase64()
|
||||
}
|
||||
SigningContext = new SigningContextModel(psbt)
|
||||
});
|
||||
}
|
||||
case "combine":
|
||||
@@ -437,8 +432,7 @@ namespace BTCPayServer.Controllers
|
||||
case "analyze-psbt":
|
||||
return RedirectToWalletPSBT(new WalletPSBTViewModel()
|
||||
{
|
||||
PSBT = psbt.ToBase64(),
|
||||
SigningContext = vm.SigningContext
|
||||
PSBT = psbt.ToBase64()
|
||||
});
|
||||
default:
|
||||
vm.GlobalError = "Unknown command";
|
||||
|
||||
Reference in New Issue
Block a user