mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-27 10:36:45 +00:00
add specter diy wallet model
This commit is contained in:
parent
deb45687c0
commit
0567409742
1 changed files with 5 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_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) {
|
public static WalletModel getModel(String model) {
|
||||||
return valueOf(model.toUpperCase());
|
return valueOf(model.toUpperCase());
|
||||||
|
@ -28,6 +28,10 @@ public enum WalletModel {
|
||||||
return "cobovault";
|
return "cobovault";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(this == SPECTER_DESKTOP || this == SPECTER_DIY) {
|
||||||
|
return "specter";
|
||||||
|
}
|
||||||
|
|
||||||
return this.toString().toLowerCase();
|
return this.toString().toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue