From 13a486597c3f6410e222c33707e8a946bc1846b7 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 2 Nov 2020 07:49:55 +0200 Subject: [PATCH] Remove illegal / characters from output descriptors --- .../com/sparrowwallet/sparrow/wallet/SettingsController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/SettingsController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/SettingsController.java index 980addcf..d72717ea 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/SettingsController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/SettingsController.java @@ -261,7 +261,7 @@ public class SettingsController extends WalletFormController implements Initiali Optional text = dialog.showAndWait(); if(text.isPresent() && !text.get().isEmpty() && !text.get().equals(outputDescriptorString)) { try { - OutputDescriptor editedOutputDescriptor = OutputDescriptor.getOutputDescriptor(text.get()); + OutputDescriptor editedOutputDescriptor = OutputDescriptor.getOutputDescriptor(text.get().trim().replace("\\", "")); Wallet editedWallet = editedOutputDescriptor.toWallet(); editedWallet.setName(getWalletForm().getWallet().getName());