Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
fix: add missing buffer require (#70)
Browse files Browse the repository at this point in the history
See https://github.com/ipld/js-ipld-ethereum/pull/69/files#r465473783

Arg type for the `.tree` resolver method was wrong too.
  • Loading branch information
achingbrain authored Aug 5, 2020
1 parent 96c102a commit c84898b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion util/createResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const createResolver = (codec, deserialize) => {
* Return all available paths of a block.
*
* @generator
* @param {Buffer} binaryBlob - Binary representation of a Bitcoin block
* @param {Uint8Array} binaryBlob - Binary representation of a Bitcoin block
* @yields {string} - A single path
*/
const tree = function * (binaryBlob) {
Expand Down
1 change: 1 addition & 0 deletions util/createUtil.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const CID = require('cids')
const multicodec = require('multicodec')
const multihashing = require('multihashing-async')
const { Buffer } = require('buffer')

const DEFAULT_HASH_ALG = multicodec.KECCAK_256

Expand Down

0 comments on commit c84898b

Please sign in to comment.