From 019a3cf34f60da053ca7b5540e2bb7bcee6fbd50 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 29 Apr 2020 16:50:52 +0200 Subject: [PATCH] handle casing on types --- .../java/com/sparrowwallet/drongo/wallet/WalletModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }