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

Commit c84898b

Browse files
authored
fix: add missing buffer require (#70)
See https://github.com/ipld/js-ipld-ethereum/pull/69/files#r465473783 Arg type for the `.tree` resolver method was wrong too.
1 parent 96c102a commit c84898b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

util/createResolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const createResolver = (codec, deserialize) => {
6262
* Return all available paths of a block.
6363
*
6464
* @generator
65-
* @param {Buffer} binaryBlob - Binary representation of a Bitcoin block
65+
* @param {Uint8Array} binaryBlob - Binary representation of a Bitcoin block
6666
* @yields {string} - A single path
6767
*/
6868
const tree = function * (binaryBlob) {

util/createUtil.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const CID = require('cids')
22
const multicodec = require('multicodec')
33
const multihashing = require('multihashing-async')
4+
const { Buffer } = require('buffer')
45

56
const DEFAULT_HASH_ALG = multicodec.KECCAK_256
67

0 commit comments

Comments
 (0)