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
The IDFromString simply takes the peerID type converted to a string and not the string representation of the peerID.
Here's a sample example that works:
Assume that
id
is a validpeer.ID
.peer.IDFromString(id.Pretty())
generates an error, even though I'm just converting the multihash back and forth.The text was updated successfully, but these errors were encountered: