Remove useless code

This commit is contained in:
nicolas.dorier 2019-05-13 08:23:24 +09:00
parent 663b5beac1
commit a7edbfe5e9
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -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)
{