diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java index fb68f38..406e320 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java @@ -61,6 +61,22 @@ public class Wallet extends Persistable { return name; } + public String getFullName() { + if(isMasterWallet()) { + return name; + } + + return getMasterWallet().getName() + "-" + name; + } + + public String getMasterName() { + if(isMasterWallet()) { + return name; + } + + return getMasterWallet().getName(); + } + public void setName(String name) { this.name = name; } @@ -1233,6 +1249,6 @@ public class Wallet extends Persistable { @Override public String toString() { - return getName(); + return getFullName(); } }