Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit 1c1a478

Browse files
achingbrainvasco-santos
authored andcommitted
fix: use .cid property before falling back to .multihash (#12)
1 parent 7dd7310 commit 1c1a478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const cid = promisify((ipfs, path, callback) => {
8686
try {
8787
// assume a Buffer with a valid CID
8888
// (cid is allowed instead of multihash since https://github.com/ipld/js-ipld-dag-pb/pull/80)
89-
cidOfNextFile = new CID(link.multihash)
89+
cidOfNextFile = new CID(link.cid)
9090
} catch (err) {
9191
// fallback to multihash
9292
cidOfNextFile = new CID(mh.toB58String(link.multihash))

0 commit comments

Comments
 (0)