diff --git a/BTCPayServer.Tests/PSBTTests.cs b/BTCPayServer.Tests/PSBTTests.cs index 000c3f6c0..83d3e0741 100644 --- a/BTCPayServer.Tests/PSBTTests.cs +++ b/BTCPayServer.Tests/PSBTTests.cs @@ -128,6 +128,15 @@ namespace BTCPayServer.Tests Assert.Equal(signedPSBT.ToBase64(), psbt); redirect = Assert.IsType(await walletController.WalletPSBTReady(walletId, ready, command: "broadcast")); Assert.Equal(nameof(walletController.WalletTransactions), redirect.ActionName); + + //test base64 psbt file + Assert.False(string.IsNullOrEmpty(Assert.IsType( + Assert.IsType( + await walletController.WalletPSBT(walletId, + new WalletPSBTViewModel() + { + UploadedPSBTFile = TestUtils.GetFormFile("base64", signedPSBT.ToBase64()) + })).Model).PSBT)); } }