Skip to content

Commit

Permalink
fix: much better
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Jul 14, 2020
1 parent bc4c218 commit 49fb5ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cid.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default multiformats => {
writable: false,
enumerable: false
})
readonly(this, 'asCID', this)
if (_CID.isCID(cid)) {
readonly(this, 'version', cid.version)
readonly(this, 'multihash', bytes.coerce(cid.multihash))
Expand Down

0 comments on commit 49fb5ad

Please sign in to comment.