From 56c808c35348d886ea8d1adca785432215d8ae84 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Mon, 11 Jun 2018 15:12:16 -0500 Subject: [PATCH] Added a toString to the PublicKey class --- graphenej/src/main/java/cy/agorise/graphenej/PublicKey.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/graphenej/src/main/java/cy/agorise/graphenej/PublicKey.java b/graphenej/src/main/java/cy/agorise/graphenej/PublicKey.java index f20f648..4dc5c05 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/PublicKey.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/PublicKey.java @@ -53,4 +53,9 @@ public class PublicKey implements ByteSerializable, Serializable { PublicKey other = (PublicKey) obj; return this.publicKey.equals(other.getKey()); } + + @Override + public String toString() { + return getAddress(); + } } \ No newline at end of file