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

Commit 493790a

Browse files
author
Alan Shaw
committed
fix: more serialize
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
1 parent f29d8fc commit 493790a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dag/get.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ module.exports = (createCommon, options) => {
126126

127127
const node = result.value
128128

129-
dagPB.util.cid(node)
129+
dagPB.util.cid(dagPB.util.serialize(node))
130130
.then((cid) => expect(cid).to.eql(cidPb))
131131
.then(done)
132132
.catch(done)
@@ -150,7 +150,7 @@ module.exports = (createCommon, options) => {
150150

151151
const node = result.value
152152

153-
dagCBOR.util.cid(node)
153+
dagCBOR.util.cid(dagCBOR.util.serialize(node))
154154
.then(cid => expect(cid).to.eql(cidCbor))
155155
.then(done)
156156
.catch(done)
@@ -185,7 +185,7 @@ module.exports = (createCommon, options) => {
185185

186186
const node = result.value
187187

188-
dagCBOR.util.cid(node)
188+
dagCBOR.util.cid(dagCBOR.util.serialize(node))
189189
.then(cid => expect(cid).to.eql(cidCbor))
190190
.then(done)
191191
.catch(done)

0 commit comments

Comments
 (0)