From 8009448a20591e767e6394be14fbde4b03820e54 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Thu, 3 May 2018 19:30:05 +0200 Subject: [PATCH] fix KeyString() --- cid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cid.go b/cid.go index 72624ec..099dd63 100644 --- a/cid.go +++ b/cid.go @@ -444,7 +444,7 @@ func (c Cid) MarshalJSON() ([]byte, error) { // KeyString casts the result of cid.Bytes() as a string, and returns it. func (c Cid) KeyString() string { - return string(c.Bytes()) + return string(c) } // Loggable returns a Loggable (as defined by