ipld / js-ipld

The JavaScript Implementation of IPLD
https://ipld.io
MIT License
119 stars 37 forks source link

fix: create buffers from decoded multihash digests #287

Closed achingbrain closed 4 years ago

achingbrain commented 4 years ago

multihash.decode returns Uint8Arrays which we set as prevHash but bitcoin-lib requires these to be node Buffers.

achingbrain commented 4 years ago

N.b. browser tests are failing due to https://github.com/babel/babel/issues/11914

codecov[bot] commented 4 years ago

Codecov Report

Merging #287 into master will decrease coverage by 0.07%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #287      +/-   ##
==========================================
- Coverage   88.31%   88.23%   -0.08%     
==========================================
  Files           3        3              
  Lines         154      153       -1     
==========================================
- Hits          136      135       -1     
  Misses         18       18              
Impacted Files Coverage Δ
src/index.js 86.76% <ø> (-0.10%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 75037ea...08105ef. Read the comment docs.