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: add missing quotes around undefined #207

Merged
merged 1 commit into from
Dec 3, 2021
Merged

fix: add missing quotes around undefined #207

merged 1 commit into from
Dec 3, 2021

Conversation

yhuard
Copy link
Contributor

@yhuard yhuard commented Dec 3, 2021

This is a quick fix adding missing quotes around undefined.

Without the quotes, typeof blockchainAccountId !== undefined always return true, and all the authenticators are added to blockchainAddressKeys, which causes the lib to unnecessarily call signer = verifyRecoverableES256K(data, signature, blockchainAddressKeys) (line 78) when signer is falsy.

Copy link
Member

@mirceanis mirceanis left a comment

Choose a reason for hiding this comment

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

nice find, thanks for spotting and fixing that!

@mirceanis mirceanis merged commit 4abd521 into decentralized-identity:master Dec 3, 2021
@yhuard yhuard deleted the fix/undefined branch December 3, 2021 10:50
uport-automation-bot pushed a commit that referenced this pull request Dec 3, 2021
## [5.12.1](5.12.0...5.12.1) (2021-12-03)

### Bug Fixes

* add missing quotes around undefined ([#207](#207)) ([4abd521](4abd521))
@uport-automation-bot
Copy link
Collaborator

🎉 This PR is included in version 5.12.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants