From a7edbfe5e935b1d18d6ff30fbdf140dc673ff37d Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 13 May 2019 08:23:24 +0900 Subject: [PATCH] Remove useless code --- BTCPayServer/Services/LedgerHardwareWalletService.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BTCPayServer/Services/LedgerHardwareWalletService.cs b/BTCPayServer/Services/LedgerHardwareWalletService.cs index de050a35f..15b53348d 100644 --- a/BTCPayServer/Services/LedgerHardwareWalletService.cs +++ b/BTCPayServer/Services/LedgerHardwareWalletService.cs @@ -134,10 +134,7 @@ namespace BTCPayServer.Services KeyPath = i.First().KeyPath, PubKey = i.First().PubKey }).ToArray(); - var signedTransaction = await Ledger.SignTransactionAsync(signatureRequests, unsigned, changeKeyPath, cancellationToken); - if (signedTransaction == null) - throw new HardwareWalletException("The ledger failed to sign the transaction"); - + await Ledger.SignTransactionAsync(signatureRequests, unsigned, changeKeyPath, cancellationToken); psbt = psbt.Clone(); foreach (var signature in signatureRequests) {