From 05674097428d25de043310f8ecddf06d998b3943 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 9 Dec 2020 17:16:12 +0200 Subject: [PATCH] add specter diy wallet model --- .../java/com/sparrowwallet/drongo/wallet/WalletModel.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java b/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java index 701c1fc..13b2295 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/WalletModel.java @@ -1,7 +1,7 @@ package com.sparrowwallet.drongo.wallet; public enum WalletModel { - SEED, SPARROW, BITCOIN_CORE, ELECTRUM, TREZOR_1, TREZOR_T, COLDCARD, LEDGER_NANO_S, LEDGER_NANO_X, DIGITALBITBOX_01, KEEPKEY, SPECTER, COBO_VAULT, BITBOX_02; + SEED, SPARROW, BITCOIN_CORE, ELECTRUM, TREZOR_1, TREZOR_T, COLDCARD, LEDGER_NANO_S, LEDGER_NANO_X, DIGITALBITBOX_01, KEEPKEY, SPECTER_DESKTOP, COBO_VAULT, BITBOX_02, SPECTER_DIY; public static WalletModel getModel(String model) { return valueOf(model.toUpperCase()); @@ -28,6 +28,10 @@ public enum WalletModel { return "cobovault"; } + if(this == SPECTER_DESKTOP || this == SPECTER_DIY) { + return "specter"; + } + return this.toString().toLowerCase(); }