diff --git a/core/commands/pin.go b/core/commands/pin.go index d1626c84407b..ba419e47964a 100644 --- a/core/commands/pin.go +++ b/core/commands/pin.go @@ -547,7 +547,7 @@ func pinLsKeys(ctx context.Context, args []string, typeStr string, n *core.IpfsN default: pinType = "indirect through " + pinType } - keys[c.String()] = RefKeyObject{ + keys[c.Cid().String()] = RefKeyObject{ Type: pinType, } }