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

Commit f709ec9

Browse files
hugomrdiasvmx
authored andcommitted
fix: encode with multibase
1 parent 886b06d commit f709ec9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/dag-node-test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const BlockService = require('ipfs-block-service')
1919
const Block = require('ipld-block')
2020
const CID = require('cids')
2121
const multibase = require('multibase')
22-
const bs58 = require('bs58')
2322
const loadFixture = require('aegir/fixtures')
2423

2524
const testBlockNamedLinks = loadFixture('test/fixtures/test-block-named-links')
@@ -473,18 +472,15 @@ module.exports = (repo) => {
473472
Hash: 'QmP7SrR76KHK9A916RbHG1ufy2TzNABZgiE23PjZDMzZXy',
474473
Size: 262158
475474
}
476-
console.log(multibase.decode('z' + l1.Hash), bs58.decode(l1.Hash))
477475
const link1 = new DAGLink(
478476
l1.Name,
479477
l1.Tsize,
480478
multibase.decode('z' + l1.Hash)
481-
// Buffer.from(bs58.decode(l1.Hash))
482479
)
483480
const link2 = new DAGLink(
484481
l2.Name,
485482
l2.Tsize,
486483
multibase.decode('z' + l2.Hash)
487-
// Buffer.from(bs58.decode(l2.Hash))
488484
)
489485

490486
const node = new DAGNode(Buffer.from('hiya'), [link1, link2])

0 commit comments

Comments
 (0)