This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -270,13 +270,13 @@ A great source of [examples][] can be found in the tests for this API.
270
270
271
271
` link ` is the new link to be added on the node that is identified by the ` multihash ` , can be passed as:
272
272
- ` DAGLink `
273
- - Object containing: name, multihash and size properties
273
+ - Object containing: name, cid and size properties
274
274
275
275
``` js
276
276
const link = {
277
277
name: ' Qmef7ScwzJUCg1zUSrCmPAz45m8uP5jU7SLgt2EffjBmbL' ,
278
278
size: 37 ,
279
- multihash : ' Qmef7ScwzJUCg1zUSrCmPAz45m8uP5jU7SLgt2EffjBmbL'
279
+ cid : new CID ( ' Qmef7ScwzJUCg1zUSrCmPAz45m8uP5jU7SLgt2EffjBmbL' )
280
280
};
281
281
```
282
282
@@ -300,7 +300,7 @@ If no `callback` is passed, a [promise][] is returned.
300
300
ipfs .object .patch .addLink (node, {
301
301
name: ' some-link'
302
302
size: 10
303
- multihash : ' QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD'
303
+ cid : new CID ( ' QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD' )
304
304
}, (err , cid ) => {
305
305
if (err) {
306
306
throw err
@@ -338,7 +338,7 @@ A great source of [examples][] can be found in the tests for this API.
338
338
const link = {
339
339
name: 'Qmef7ScwzJUCg1zUSrCmPAz45m8uP5jU7SLgt2EffjBmbL'
340
340
};
341
- ` ` `
341
+ ` ` `
342
342
343
343
` options` is a optional argument of type object, that can contain the following properties:
344
344
You can’t perform that action at this time.
0 commit comments