diff --git a/cid.go b/cid.go index 2676f48..eb426ed 100644 --- a/cid.go +++ b/cid.go @@ -80,7 +80,7 @@ const ( ) // Codecs maps the name of a codec to its type -var Codecs = map[string]byte{ +var Codecs = map[string]uint64{ "v0": DagProtobuf, "raw": Raw, "protobuf": DagProtobuf, diff --git a/cid_test.go b/cid_test.go index b1095c4..11cdb63 100644 --- a/cid_test.go +++ b/cid_test.go @@ -15,7 +15,7 @@ import ( // Copying the "silly test" idea from // https://github.com/multiformats/go-multihash/blob/7aa9f26a231c6f34f4e9fad52bf580fd36627285/multihash_test.go#L13 // Makes it so changing the table accidentally has to happen twice. -var tCodecs = map[byte]string{ +var tCodecs = map[uint64]string{ Raw: "raw", DagProtobuf: "protobuf", DagCBOR: "cbor",