-
Notifications
You must be signed in to change notification settings - Fork 988
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
Multicollectible amount is not updated after transaction until relogin #21483
Comments
Hey @pavloburykh, could you please advice if it's reproducible on desktop as well or not? as i checked the logs it seems status-go send us current count and not the new count. |
Hey @mohsen-ghafouri! You are right. I have just checked Desktop and reproduced the issue. |
Thanks @pavloburykh, i will check status-go logic. |
Based on the changes in the PR #21867, the fetch type is
The cache is valid for 1 hour (bit high) which is why we still see the cached balance. Maybe, we could try Either way, the RPC will trigger the fetching in async but the response will always return the cached ones. The response will have an map status-mobile/src/status_im/contexts/wallet/collectible/events.cljs Lines 237 to 240 in 5007dc7
We can try update the above condition to remove the timestamp check (it was added as additional check if the collectible was an account is never fetched - during account recovery). This will update the app-db with updating addresses fetch the collectibles once it's done. I'm thinking this may introduce a loading collectibles UI bug. Need to verify. Anyways, the client will receive status-mobile/src/status_im/contexts/wallet/collectible/events.cljs Lines 172 to 183 in 5007dc7
|
On the other hand for simplest solution, there are few other RPC which I noticed in the status-go such as If none of the above solution works, we definitely need to check status-go 😅 . |
Thank @smohamedjavid for your feedback, I tested once with |
JFYI @smohamedjavid I just tested |
Steps:
Actual result: amount is not updated until relogin
Status-debug-logs - 2024-10-22T175917.000.zip
telegram-cloud-document-2-5242541187209909311.mp4
Additional Information
The text was updated successfully, but these errors were encountered: