mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-27 02:26:44 +00:00
correct wallet model names
This commit is contained in:
parent
c7e16a29e3
commit
6b4b2529c8
1 changed files with 9 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
package com.sparrowwallet.drongo.wallet;
|
package com.sparrowwallet.drongo.wallet;
|
||||||
|
|
||||||
public enum WalletModel {
|
public enum WalletModel {
|
||||||
SEED, SPARROW, BITCOIN_CORE, ELECTRUM, TREZOR_1, TREZOR_T, COLDCARD, LEDGER, DIGITALBITBOX, KEEPKEY;
|
SEED, SPARROW, BITCOIN_CORE, ELECTRUM, TREZOR_1, TREZOR_T, COLDCARD, LEDGER_NANO_S, LEDGER_NANO_X, DIGITALBITBOX_01, KEEPKEY;
|
||||||
|
|
||||||
public static WalletModel getModel(String model) {
|
public static WalletModel getModel(String model) {
|
||||||
return valueOf(model.toUpperCase());
|
return valueOf(model.toUpperCase());
|
||||||
|
@ -12,6 +12,14 @@ public enum WalletModel {
|
||||||
return "trezor";
|
return "trezor";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(this == LEDGER_NANO_S || this == LEDGER_NANO_X) {
|
||||||
|
return "ledger";
|
||||||
|
}
|
||||||
|
|
||||||
|
if(this == DIGITALBITBOX_01) {
|
||||||
|
return "digitalbitbox";
|
||||||
|
}
|
||||||
|
|
||||||
return this.toString().toLowerCase();
|
return this.toString().toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue