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

Commit 4b79619

Browse files
committed
fix: specify default codec
1 parent 111ed8e commit 4b79619

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils/persist.js

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ const persist = (node, ipld, options) => {
99
options.codec = 'raw'
1010
}
1111

12+
if (!options.codec) {
13+
options.codec = 'dag-pb'
14+
}
15+
1216
if (isNaN(options.hashAlg)) {
1317
options.hashAlg = mh.names[options.hashAlg]
1418
}

0 commit comments

Comments
 (0)