Skip to content

Commit

Permalink
fix: multicodec.getCodec func
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Oct 2, 2016
1 parent b4ac638 commit b60a3ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ exports.rmPrefix = (data) => {
}

exports.getCodec = (prefixedData) => {
const code = new Buffer(varint.decode(prefixedData))

const v = varint.decode(prefixedData)
const code = new Buffer(v.toString(16), 'hex')
let codec

Object.keys(table)
Expand Down

0 comments on commit b60a3ac

Please sign in to comment.