From d3881f76b935fbd2210fa537737cd0d19d5a61d7 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 27 Oct 2020 11:09:31 +0200 Subject: [PATCH] default to trezor t on import --- src/main/java/com/sparrowwallet/sparrow/io/Electrum.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java b/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java index ddc6c382..935f936b 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/Electrum.java @@ -138,6 +138,9 @@ public class Electrum implements KeystoreFileImport, WalletImport, WalletExport if(keystore.getWalletModel() == null) { 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)) { 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. " +