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

fix(object.get): treat ipfs hash strings as default base58 encoded #849

Merged
merged 1 commit into from
May 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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