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
Watch-only address balance should not be included in the overall balance by default #19657 #19716
Watch-only address balance should not be included in the overall balance by default #19657 #19716
Conversation
Jenkins BuildsClick to see older builds (41)
|
88% of end-end tests have passed
Failed tests (4)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityOneDeviceMerged:
Expected to fail tests (2)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Passed tests (46)Click to expandClass TestWalletMultipleDevice:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityOneDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestDeepLinksOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestWalletOneDevice:
Class TestActivityMultipleDevicePR:
Class TestActivityMultipleDevicePRTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
|
9234420
to
16c5740
Compare
No, it doesn't. The ticket was only for the top balance. I will check with them and if it's required, I will update them as well @J-Son89 |
cool, thanks @mmilad75 - we can keep them as separate issues either way. But yes let's check :) |
@J-Son89 It should be included https://discord.com/channels/624634427930312714/928625369542713396/1231915683294478368 |
@mmilad75 would you mind to fix it here? |
Sure. I had issues with running the app. I'll be working on it today |
d913140
to
7c5979e
Compare
Hi @mmilad75 ! |
src/status_im/config.cljs
Outdated
@@ -133,3 +133,5 @@ | |||
(def community-accounts-selection-enabled? true) | |||
(def fetch-messages-enabled? (enabled? (get-config :FETCH_MESSAGES_ENABLED "1"))) | |||
(def test-networks-enabled? (enabled? (get-config :TEST_NETWORKS_ENABLED "0"))) | |||
|
|||
(def include-watch-only-balance-in-total? false) |
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.
This flag can be removed as we are excluding the watched addresses in the balance calculation.
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
:<- [:wallet/accounts-without-watched-accounts] | ||
(fn [[all-accounts owned-accounts]] | ||
(let [accounts (if config/include-watch-only-balance-in-total? all-accounts owned-accounts)] | ||
(utils/aggregate-tokens-for-all-accounts accounts)))) | ||
|
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.
(rf/reg-sub
:wallet/aggregated-tokens
:<- [:wallet/accounts-without-watched-accounts] ;; Replace :wallet/accounts with this sub
(fn [accounts]
(utils/aggregate-tokens-for-all-accounts accounts)))
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
Please check again with the latest build 🙏 |
Thanks @mmilad75 ! Functionality works properly. |
94% of end-end tests have passed
Failed tests (1)Click to expandClass TestWalletMultipleDevice:
Expected to fail tests (2)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Passed tests (49)Click to expandClass TestCommunityMultipleDeviceMergedTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePRTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMerged:
Class TestWalletOneDevice:
Class TestWalletMultipleDevice:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestDeepLinksOneDevice:
Class TestCommunityOneDeviceMerged:
Class TestActivityMultipleDevicePR:
|
Hi @mmilad75 ! |
fixes #19657
Screen.Recording.2024-04-19.at.00.44.41.mov