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

Allow ed25519 keys to generate long-zero address from alias #1822

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

petreze
Copy link
Contributor

@petreze petreze commented Aug 29, 2023

Enhanced AccountId.toSolidityAddress() so that it does not throw error if there is an alias but the key is ED25519, instead generate the long-zero format

Related issue(s):

Fixes #1821

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

…lidityAddress()

Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
@petreze petreze changed the title allow ed25519 keys to generate long-zero address from alias Allow ed25519 keys to generate long-zero address from alias Aug 29, 2023
@petreze petreze merged commit 3f74615 into develop Aug 29, 2023
6 of 7 checks passed
@petreze petreze deleted the fix/add-simple-check branch August 29, 2023 16:27
@sonarcloud
Copy link

sonarcloud bot commented Aug 29, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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.

AccountId.toSolidityAddress() cannot handle if alias key is populated
1 participant