diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Sparrow.java b/src/main/java/com/sparrowwallet/sparrow/io/Sparrow.java index fa9b6d53..5aeb82fe 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/Sparrow.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/Sparrow.java @@ -60,15 +60,7 @@ public class Sparrow implements WalletImport, WalletExport { @Override public String getExportFileExtension(Wallet wallet) { - try { - Storage storage = AppServices.get().getOpenWallets().get(wallet); - Wallet exportedWallet = !wallet.isMasterWallet() ? wallet.getMasterWallet() : wallet; - return !exportedWallet.getChildWallets().isEmpty() ? PersistenceType.DB.getExtension() : (storage.isEncrypted() ? "" : PersistenceType.JSON.getExtension()); - } catch(IOException e) { - //ignore - } - - return ""; + return PersistenceType.DB.getExtension(); } @Override