mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
allow message sign/verify from nested segwit wallets
This commit is contained in:
parent
6337e1cf7d
commit
9293b622a3
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ public class MessageSignDialog extends Dialog<ButtonBar.ButtonData> {
|
||||||
private boolean isValidAddress() {
|
private boolean isValidAddress() {
|
||||||
try {
|
try {
|
||||||
Address address = getAddress();
|
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) {
|
} catch (InvalidAddressException e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue