Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 1a36375

Browse files
0x-r4bbitalanshaw
authored andcommitted
fix(dag): fix default hash algorithm for put() api (#1419)
Turns out we've introduced a little bug in d299ed7 in which the default hash algorithm has a typo. This didn't fail on CI because the `options.hashAlg` passed down to `ipld.put()` is actually not being used at time of this commit. For more info see: https://github.com/ipld/js-ipld/blob/d3d78e053ebd3f8c85a8b5579715be8812773d4d/src/index.js#L236-L239 License: MIT Signed-off-by: Pascal Precht <pascal.precht@gmail.com>
1 parent d299ed7 commit 1a36375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/dag.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = function dag (self) {
1919

2020
const optionDefaults = {
2121
format: 'dag-cbor',
22-
hashAlg: 'sha2-255'
22+
hashAlg: 'sha2-256'
2323
}
2424

2525
options = options.cid ? options : Object.assign({}, optionDefaults, options)

0 commit comments

Comments
 (0)