allow message sign/verify from nested segwit wallets

This commit is contained in:
Craig Raw 2022-11-21 16:09:59 +02:00
parent 6337e1cf7d
commit 9293b622a3

View file

@ -295,7 +295,7 @@ public class MessageSignDialog extends Dialog<ButtonBar.ButtonData> {
private boolean isValidAddress() {
try {
Address address = getAddress();
return address.getScriptType() != ScriptType.P2TR && address.getScriptType().isAllowed(PolicyType.SINGLE);
return address.getScriptType() != ScriptType.P2TR && (address.getScriptType().isAllowed(PolicyType.SINGLE) || address.getScriptType() == ScriptType.P2SH);
} catch (InvalidAddressException e) {
return false;
}