multiformats / js-cid

CID implementation in JavaScript
MIT License
97 stars 39 forks source link

fix: toV0 and toV1 create instances that cause isCID be false #60

Closed alanshaw closed 5 years ago

alanshaw commented 5 years ago

The toV0 and toV1 functions were returning instances of the unwrapped CID class not the wrapped one with the class-is smarts.