-
Notifications
You must be signed in to change notification settings - Fork 987
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
Validation error not displayed for Incorrect eth address in "Sent To" page #19599 #19862
Conversation
(rf/reg-event-fx :wallet/validate-address | ||
(fn [{:keys [db]} [address]] |
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.
These events were implemented for mock purposes. Now, they're not needed anymore. So I deleted them
Jenkins BuildsClick to see older builds (27)
|
(rf/reg-event-fx :wallet/address-validation-failed | ||
(fn [{:keys [db]}] | ||
{:db (assoc-in db [:wallet :ui :search-address :valid-ens-or-address?] false)})) | ||
|
||
(rf/reg-event-fx :wallet/validate-address |
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.
Here the event is used as a container for validation logic which is not ideal. I'd suggest moving logic to a function instead and use it in place of event, wdyt?
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.
Done
@@ -32,7 +33,15 @@ | |||
recipient (rf/sub [:wallet/wallet-send-recipient]) | |||
recipient-plain-address? (= send-address recipient) | |||
valid-ens-or-address? (rf/sub [:wallet/valid-ens-or-address?]) | |||
contacts (rf/sub [:contacts/active])] | |||
contacts (rf/sub [:contacts/active]) | |||
validate-address (fn [address] |
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.
Maybe it can be taken out of component for better readability, wdyt?
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.
Done
83% of end-end tests have passed
Failed tests (7)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestDeepLinksOneDevice:
Class TestWalletMultipleDevice:
Class TestActivityCenterContactRequestMultipleDevicePR:
Expected to fail tests (2)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Passed tests (43)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityOneDeviceMerged:
Class TestActivityMultipleDevicePRTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestWalletOneDevice:
Class TestCommunityMultipleDeviceMerged:
|
29% of end-end tests have passed
Failed tests (5)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestDeepLinksOneDevice:
Class TestWalletMultipleDevice:
Passed tests (2)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
|
hi @mmilad75 Thank you for PR. No issues from my side. Ready to be merged |
0% of end-end tests have passed
Failed tests (2)Click to expandClass TestWalletMultipleDevice:
|
fixes #19599
RPReplay_Final1714654918.MP4