mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
fix: handle empty private key in bitcoin transaction building
This commit is contained in:
parent
8e147967ad
commit
bfec91dc02
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue