You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.
Where a CID instance is constructed from a string, we should preserve the base that it was given in, and use it as the default base when toBaseEncodedString is called, so the information is not lost.
ooooooo, I think this would also open up some nice lazy properties we could put on CID’s so that they don’t actually do buffer allocations if all someone does is instantiate one with a string and then ask for it base encoded again. Love it!
Where a CID instance is constructed from a string, we should preserve the base that it was given in, and use it as the default base when
toBaseEncodedString
is called, so the information is not lost.In IPLD explorer, we construct a CID from a user provided string. That means we lose the information about the base encoding we were given. See: ipfs/ipfs-webui#999
Ideally we'd have it so you could
The text was updated successfully, but these errors were encountered: