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

Commit

Permalink
pass multibaseName when converting to v1 (could be called on v1 cid)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdukakis committed Apr 28, 2021
1 parent 1364781 commit 35de2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class CID {
* @returns {CID}
*/
toV1 () {
return new CID(1, this.codec, this.multihash)
return new CID(1, this.codec, this.multihash, this.multibaseName)
}

/**
Expand Down

0 comments on commit 35de2f0

Please sign in to comment.