mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
default to trezor t on import
This commit is contained in:
parent
be5a48ce71
commit
d3881f76b9
1 changed files with 3 additions and 0 deletions
|
@ -138,6 +138,9 @@ public class Electrum implements KeystoreFileImport, WalletImport, WalletExport
|
||||||
if(keystore.getWalletModel() == null) {
|
if(keystore.getWalletModel() == null) {
|
||||||
throw new ImportException("Wallet has keystore of unknown hardware wallet type \"" + ek.hw_type + "\".");
|
throw new ImportException("Wallet has keystore of unknown hardware wallet type \"" + ek.hw_type + "\".");
|
||||||
}
|
}
|
||||||
|
if(keystore.getWalletModel().equals(WalletModel.TREZOR_1)) {
|
||||||
|
keystore.setWalletModel(WalletModel.TREZOR_T);
|
||||||
|
}
|
||||||
} else if("bip32".equals(ek.type)) {
|
} else if("bip32".equals(ek.type)) {
|
||||||
if(ek.xprv != null && ek.seed == null) {
|
if(ek.xprv != null && ek.seed == null) {
|
||||||
throw new ImportException("Electrum does not support exporting BIP39 derived seeds, as it does not store the mnemonic words. Only seeds created with its native Electrum Seed Version System are exportable. " +
|
throw new ImportException("Electrum does not support exporting BIP39 derived seeds, as it does not store the mnemonic words. Only seeds created with its native Electrum Seed Version System are exportable. " +
|
||||||
|
|
Loading…
Reference in a new issue