-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: 7862 invalid address error #7881
Conversation
change getKeyringByAddress() method to return null if isValidHexAddress Also fix the unit tests for that method.
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7881 +/- ##
==========================================
- Coverage 37.42% 37.38% -0.04%
==========================================
Files 1052 1052
Lines 28177 28177
Branches 2516 2516
==========================================
- Hits 10544 10534 -10
- Misses 17034 17044 +10
Partials 599 599 ☔ View full report in Codecov by Sentry. |
E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/f1bdb212-c238-4106-9754-7496f5231bef |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dawnseeker8 can you please also add a unit test to the AddressInput
component where the toSelectedAddress
is not a valid hex address?
AddressTo Component
Existing unit tests - as you can see there are only tests with valid hex addresses.
The PR looks good from QA cc @dawnseeker8 . I see the issue fixed. I can enter any char, and both hex and ENS address seem to work as expected recipietn-to-char.mp4 |
updated comment Co-authored-by: Gustavo Antunes <17601467+gantunesr@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Kudos, SonarCloud Quality Gate passed! |
Description
This PR was created to fix the issue [#7862], following code change has been done:
getKeyringByAddress()
method to return undefined when address is not valid hex address (e.g. ENS domain name)address/index.test.ts
fileRelated issues
Fixes: [#7862]
Manual testing steps
Please refer to following videos for detail how to test.
Screenshots/Recordings
Before
before.mp4
After
Screen_Recording_20231120_224005_MetaMask.mp4
Pre-merge reviewer checklist