From 78406fd024fd33b5fc918623c5d1a82f7411e8f0 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 7 Feb 2024 09:26:26 +0200 Subject: [PATCH] include labels for hidden addresses in address csv export --- .../com/sparrowwallet/sparrow/wallet/AddressesController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/AddressesController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/AddressesController.java index 6758a601..5cef7655 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/AddressesController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/AddressesController.java @@ -163,7 +163,7 @@ public class AddressesController extends WalletFormController implements Initial writer.write(getDerivationPath(indexNode)); Optional optLabelEntry = getWalletForm().getNodeEntry(keyPurpose).getChildren().stream() .filter(entry -> ((NodeEntry)entry).getNode().getIndex() == indexNode.getIndex()).findFirst(); - writer.write(optLabelEntry.isPresent() ? optLabelEntry.get().getLabel() : ""); + writer.write(optLabelEntry.isPresent() ? optLabelEntry.get().getLabel() : indexNode.getLabel()); writer.endRecord(); } writer.close();