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

Commit 7b3caef

Browse files
committed
fix(object.get): treat ipfs hash strings as default base58 encoded
1 parent 637250d commit 7b3caef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/object.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const assert = require('assert')
1212

1313
function normalizeMultihash (multihash, enc) {
1414
if (typeof multihash === 'string') {
15-
if (enc === 'base58') {
15+
if (enc === 'base58' || !enc) {
1616
return multihash
1717
}
1818

0 commit comments

Comments
 (0)