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

Commit

Permalink
fix(object.get): treat ipfs hash strings as default base58 encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshyx committed May 9, 2017
1 parent 637250d commit 7b3caef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const assert = require('assert')

function normalizeMultihash (multihash, enc) {
if (typeof multihash === 'string') {
if (enc === 'base58') {
if (enc === 'base58' || !enc) {
return multihash
}

Expand Down

0 comments on commit 7b3caef

Please sign in to comment.