mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Fix U2F signing
This commit is contained in:
@@ -580,7 +580,7 @@ namespace BTCPayServer.Controllers
|
|||||||
PSBT = psbt.PSBT.ToBase64()
|
PSBT = psbt.PSBT.ToBase64()
|
||||||
});
|
});
|
||||||
case "ledger":
|
case "ledger":
|
||||||
return ViewWalletSendLedger(psbt.PSBT, psbt.ChangeAddress);
|
return ViewWalletSendLedger(walletId, psbt.PSBT, psbt.ChangeAddress);
|
||||||
case "seed":
|
case "seed":
|
||||||
return SignWithSeed(walletId, psbt.PSBT.ToBase64());
|
return SignWithSeed(walletId, psbt.PSBT.ToBase64());
|
||||||
case "analyze-psbt":
|
case "analyze-psbt":
|
||||||
@@ -641,14 +641,14 @@ namespace BTCPayServer.Controllers
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ViewResult ViewWalletSendLedger(PSBT psbt, BitcoinAddress hintChange = null)
|
private ViewResult ViewWalletSendLedger(WalletId walletId, PSBT psbt, BitcoinAddress hintChange = null)
|
||||||
{
|
{
|
||||||
SetAmbientPSBT(psbt);
|
SetAmbientPSBT(psbt);
|
||||||
return View("WalletSendLedger", new WalletSendLedgerModel()
|
return View("WalletSendLedger", new WalletSendLedgerModel()
|
||||||
{
|
{
|
||||||
PSBT = psbt.ToBase64(),
|
PSBT = psbt.ToBase64(),
|
||||||
HintChange = hintChange?.ToString(),
|
HintChange = hintChange?.ToString(),
|
||||||
WebsocketPath = this.Url.Action(nameof(LedgerConnection))
|
WebsocketPath = this.Url.Action(nameof(LedgerConnection), new { walletId = walletId.ToString() })
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user