Skip to content

Commit

Permalink
fix: upgrade for 0.36
Browse files Browse the repository at this point in the history
The IPLD dag-pb format changed in 0.36 to more closely follow it's serialized form.

See the release notes for more info ipfs/js-ipfs#2024
  • Loading branch information
Alan Shaw committed May 22, 2019
1 parent f0df3ff commit 8924bf0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ function getFile(ipfs, rootHash, filename, callback) {
var hash = null
var fileSize, fileName

_.each(res.links, function(link) {
if (link.name === filename) {
hash = link.multihash
fileSize = link.size
fileName = link.name
_.each(res.Links, function(link) {
if (link.Name === filename) {
hash = link.Hash
fileSize = link.Tsize
fileName = link.Name
return false
}
});
Expand Down

0 comments on commit 8924bf0

Please sign in to comment.