Fix bug: Vault option now showing up in PSBT

This commit is contained in:
nicolas.dorier 2019-12-03 18:57:07 +09:00
parent df38b84bbb
commit 5d7b253edd
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -55,6 +55,7 @@ namespace BTCPayServer.Controllers
WalletId walletId, WalletPSBTViewModel vm)
{
var network = NetworkProvider.GetNetwork<BTCPayNetwork>(walletId.CryptoCode);
vm.CryptoCode = network.CryptoCode;
if (await vm.GetPSBT(network.NBitcoinNetwork) is PSBT psbt)
{
vm.Decoded = psbt.ToString();
@ -72,6 +73,7 @@ namespace BTCPayServer.Controllers
if (command == null)
return await WalletPSBT(walletId, vm);
var network = NetworkProvider.GetNetwork<BTCPayNetwork>(walletId.CryptoCode);
vm.CryptoCode = network.CryptoCode;
var psbt = await vm.GetPSBT(network.NBitcoinNetwork);
if (psbt == null)
{