Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Links should not be printed as {"code":85,"version":1,"hash":{"0":0,"1":0}}}} #171

Open
Gozala opened this issue Dec 12, 2022 · 1 comment

Comments

@Gozala
Copy link
Collaborator

Gozala commented Dec 12, 2022

Bunch of errors produce unreadable messages because links are not serialized properly. That is because CIDs define links as follows https://github.com/multiformats/js-multiformats/blob/15c52c8a5384e1bc84cccfa34ed6c7a78eb23978/src/cid.js#L202-L208 where bytes gets serialized as on object containing each byte.

@Gozala
Copy link
Collaborator Author

Gozala commented Dec 12, 2022

I have submitted issue to multiformats multiformats/js-multiformats#228, but in the meantime we could workaround this via JSON.stringify replacer function which can substitute { code, version, hash } as needed.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant