Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: accept cid encoded peer ids in peerIdFromString #2773

Closed
wants to merge 3 commits into from

Conversation

2color
Copy link
Contributor

@2color 2color commented Oct 17, 2024

Description

Fixes #2772

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@2color 2color requested a review from a team as a code owner October 17, 2024 12:50
Comment on lines +60 to +62
} catch (err) {
return peerIdFromCID(CID.decode(buf))
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to swallow this error here? Can this fail?

@SgtPooki
Copy link
Member

@wemeetagain @achingbrain this could use a peek from one of you

@2color 2color closed this Oct 23, 2024
@2color
Copy link
Contributor Author

2color commented Oct 23, 2024

Closing as detailed in #2772 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

peerIdFromString doesn't accept CID encoded PeerIDs
2 participants