Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix dag.multihash usage #1

Closed
wants to merge 1 commit into from
Closed

Conversation

chmanie
Copy link
Member

@chmanie chmanie commented Dec 7, 2018

I noticed some issues with the usage of dag.multihash.

This line is wrong:

hash = dag.toJSON().multihash.toString()

It should be hash not multihash: https://github.com/multiformats/js-cid/blob/22504757cead5e3213d6fd4a385ab546885debe8/src/index.js#L221. Also it's already a string.

I found the same issue in db-manifest.json

Furthermore the error handling in the save function was a little off. I hope it's a bit better now.

@chmanie chmanie added the bug Something isn't working label Dec 7, 2018
@chmanie chmanie self-assigned this Dec 7, 2018
@chmanie chmanie changed the title Fix ipfs access controller Fix dag.multihash usage Dec 7, 2018
@chmanie
Copy link
Member Author

chmanie commented Dec 7, 2018

Closed because this is due to a recent change in js-ipfs-http-client. js-ipfs and orbit-db have to catch up ipfs-inactive/js-ipfs-http-client#896

@chmanie chmanie closed this Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant