Browse Source

minor fixes after refactoring

terminal
Craig Raw 4 years ago
parent
commit
f5a72105ac
  1. 2
      drongo
  2. 2
      src/main/java/com/sparrowwallet/sparrow/control/MessageSignDialog.java
  3. 3
      src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java

2
drongo

@ -1 +1 @@
Subproject commit e53574ea542aa8311dba61e18658482611d74632
Subproject commit f1ce2ec939743e24dcd1d8426f3b68e8971c2be0

2
src/main/java/com/sparrowwallet/sparrow/control/MessageSignDialog.java

@ -316,7 +316,7 @@ public class MessageSignDialog extends Dialog<ButtonBar.ButtonData> {
Keystore keystore = decryptedWallet.getKeystores().get(0);
ECKey privKey = keystore.getKey(walletNode);
ScriptType scriptType = electrumSignatureFormat ? ScriptType.P2PKH : decryptedWallet.getScriptType();
String signatureText = privKey.signMessage(message.getText().trim(), scriptType, null);
String signatureText = privKey.signMessage(message.getText().trim(), scriptType);
signature.clear();
signature.appendText(signatureText);
privKey.clear();

3
src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java

@ -442,9 +442,6 @@ public class HeadersController extends TransactionFormController implements Init
String type = "Legacy";
if(headersForm.getTransaction().isSegwit() || (headersForm.getPsbt() != null && headersForm.getPsbt().getPsbtInputs().stream().anyMatch(in -> in.getWitnessUtxo() != null))) {
type = "Segwit";
if(headersForm.getTransaction().getSegwitFlag() == 2) {
type = "Taproot";
}
}
segwit.setText(type);
}

Loading…
Cancel
Save