Skip to content

Commit

Permalink
default cidv1 to base32
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed May 6, 2019
1 parent e7e67e0 commit f05385d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cid.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (c Cid) String() string {
case 0:
return c.Hash().B58String()
case 1:
mbstr, err := mbase.Encode(mbase.Base58BTC, c.Bytes())
mbstr, err := mbase.Encode(mbase.Base32, c.Bytes())
if err != nil {
panic("should not error with hardcoded mbase: " + err.Error())
}
Expand Down

0 comments on commit f05385d

Please sign in to comment.