helia icon indicating copy to clipboard operation
helia copied to clipboard

@helia/* modules should throw readable errors if CIDs with mismatched codecs are passed

Open achingbrain opened this issue 1 year ago • 0 comments

E.g. a CID suitable for use with @helia/json has the .code value 0x200 - if a CID without this codec is passed to @helia/json.get it should error saying something like:

The passed CID had an incorrect codec, it may correspond to a non-JSON block

achingbrain avatar Jan 11 '24 16:01 achingbrain