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

Enhance AccountId.toSolidityAddress() to handle alias field #1820

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

petreze
Copy link
Contributor

@petreze petreze commented Aug 29, 2023

Description:
This PR fixes an issue where if you have an AccountId with populated alias field it won't yield the regular evm address when toSolidityAddress() is called

Related issue(s):

Fixes #1821

Notes for reviewer:

Checklist

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

@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

@petreze petreze merged commit afb6720 into develop Aug 29, 2023
9 of 10 checks passed
@petreze petreze deleted the feature/tosolidityaddress-with-alias branch August 29, 2023 11:01
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
2 participants