diff --git a/p2p/host/peerstore/pb/custom.go b/p2p/host/peerstore/pb/custom.go index 711963c941..2ffcc32bb6 100644 --- a/p2p/host/peerstore/pb/custom.go +++ b/p2p/host/peerstore/pb/custom.go @@ -46,7 +46,7 @@ func (id *ProtoPeerID) Unmarshal(data []byte) (err error) { func (id *ProtoPeerID) UnmarshalJSON(data []byte) error { var v []byte - err := json.Unmarshal(data, v) + err := json.Unmarshal(data, &v) if err != nil { return err }