diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs
index f959d64d2..dfc243d89 100644
--- a/BTCPayServer.Tests/SeleniumTests.cs
+++ b/BTCPayServer.Tests/SeleniumTests.cs
@@ -890,11 +890,6 @@ namespace BTCPayServer.Tests
Assert.Contains("0.01000000", s.Driver.PageSource);
s.Driver.FindElement(By.CssSelector("button[value=analyze-psbt]")).Click();
Assert.EndsWith("psbt", s.Driver.Url);
-
- s.Driver.FindElement(By.Id("OtherActionsDropdownToggle")).Click();
- s.Driver.FindElement(By.CssSelector("button[value=broadcast]")).Click();
-
- Assert.EndsWith("psbt/ready", s.Driver.Url);
s.Driver.FindElement(By.CssSelector("button[value=broadcast]")).Click();
Assert.Equal(walletTransactionLink, s.Driver.Url);
diff --git a/BTCPayServer/Controllers/WalletsController.PSBT.cs b/BTCPayServer/Controllers/WalletsController.PSBT.cs
index fc1c9dc4c..26a0dadd3 100644
--- a/BTCPayServer/Controllers/WalletsController.PSBT.cs
+++ b/BTCPayServer/Controllers/WalletsController.PSBT.cs
@@ -86,12 +86,14 @@ namespace BTCPayServer.Controllers
if (await vm.GetPSBT(network.NBitcoinNetwork) is PSBT psbt)
{
+ vm.PSBT = vm.SigningContext.PSBT = psbt.ToBase64();
+ vm.PSBTHex = psbt.ToHex();
vm.Decoded = psbt.ToString();
- vm.PSBT = psbt.ToBase64();
- vm.PSBTHex = psbt.ToHex();
+ await FetchTransactionDetails(derivationSchemeSettings, vm, network);
+ return View("WalletPSBTDecoded", vm);
}
- return View(nameof(WalletPSBT), vm ?? new WalletPSBTViewModel() { CryptoCode = walletId.CryptoCode });
+ return View(vm);
}
[HttpPost("{walletId}/psbt")]
@@ -176,7 +178,8 @@ namespace BTCPayServer.Controllers
return FilePSBT(psbt, vm.FileName);
default:
- return View(vm);
+ var viewName = string.IsNullOrEmpty(vm.PSBT) ? "WalletPSBT" : "WalletPSBTDecoded";
+ return View(viewName, vm);
}
}
diff --git a/BTCPayServer/Views/Wallets/WalletPSBTDecoded.cshtml b/BTCPayServer/Views/Wallets/WalletPSBTDecoded.cshtml
index 9152f88fc..babf6cf67 100644
--- a/BTCPayServer/Views/Wallets/WalletPSBTDecoded.cshtml
+++ b/BTCPayServer/Views/Wallets/WalletPSBTDecoded.cshtml
@@ -59,7 +59,8 @@