fix: handle empty private key in bitcoin transaction building

This commit is contained in:
Konstantin Ullrich 2025-06-05 12:17:02 +02:00 committed by cyan
parent 8e147967ad
commit bfec91dc02

View file

@ -1154,7 +1154,7 @@ abstract class ElectrumWalletBase
bool hasTaprootInputs = false;
final transaction = txb.buildTransaction((txDigest, utxo, publicKey, sighash) {
return "";
if (keys.privateKey.isEmpty) return "";
String error = "Cannot find private key.";
ECPrivateInfo? key;