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

Commit

Permalink
Merge pull request #849 from kenshyx/master
Browse files Browse the repository at this point in the history
fix(object.get): treat ipfs hash strings as default base58 encoded
  • Loading branch information
daviddias authored May 12, 2017
2 parents 637250d + 7b3caef commit c5d2195
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 c5d2195

Please sign in to comment.