diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java b/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java index 28fff78..209199b 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java @@ -12,12 +12,12 @@ public enum WalletModel { return "trezor"; } - return this.toString(); + return this.toString().toLowerCase(); } public static WalletModel fromType(String type) { for(WalletModel model : values()) { - if(model.getType().equals(type)) { + if(model.getType().equalsIgnoreCase(type)) { return model; } }