Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit da5f091

Browse files
author
Alan Shaw
committed
fix: adding links with new IPLD formats
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
1 parent 4b290ab commit da5f091

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/files-regular/refs-tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
const map = require('async/map')
55
const { getDescribe, getIt, expect } = require('../utils/mocha')
6+
const CID = require('cids')
67

78
module.exports = (createCommon, suiteName, ipfsRefs, options) => {
89
const describe = getDescribe(options)
@@ -364,7 +365,7 @@ function loadDagContent (ipfs, node, callback) {
364365
putLinks: (links, cb) => {
365366
const obj = {}
366367
for (const { name, cid } of links) {
367-
obj[name] = { '/': cid }
368+
obj[name] = new CID(cid)
368369
}
369370
ipfs.dag.put(obj, cb)
370371
}

0 commit comments

Comments
 (0)