fix keepkey hww

This commit is contained in:
Craig Raw 2020-09-10 11:40:02 +02:00
parent 9faacb055c
commit db8ef9e4a1

View file

@ -23,6 +23,14 @@ public enum WalletModel {
return this.toString().toLowerCase(); return this.toString().toLowerCase();
} }
public boolean requiresPinPrompt() {
return (this == TREZOR_1 || this == KEEPKEY);
}
public boolean externalPassphraseEntry() {
return (this == TREZOR_1 || this == KEEPKEY);
}
public static WalletModel fromType(String type) { public static WalletModel fromType(String type) {
for(WalletModel model : values()) { for(WalletModel model : values()) {
if(model.getType().equalsIgnoreCase(type)) { if(model.getType().equalsIgnoreCase(type)) {