-
-
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: ethQuery is not defined when refresh is called #8625
Conversation
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. |
Quality Gate passedIssues Measures |
E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/976a13b5-1b13-4bb9-a825-ad694812158e |
Good catch! This bug seems to be upstream as well. Could you fix this in core? |
This does make me question how we're handling engine initialization as well though:
|
Need to debug further but after removing this timeout, it seems that the token rates are not updating on the UI when network changes or the tokens are being detected
These detect function should be inside a promise.all for performance reasons right? |
Yes I can! I have some core PRs that I've being always postponed to address (breaking changes and unit tests...). I will create this one, need also to dedicate sometime to solve the issues of the others! |
Definitely, all of that stuff can be looked into as separate PRs/tickets, I just jotted them down here because I noticed it when looking at this PR. |
Core PR: MetaMask/core#3933 |
Forgot to paste here, issue created: https://github.com/MetaMask/mobile-planning/issues/1566 |
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
Description
We were experiencing
undefined is not an object (evaluating 'inputBn.toString')
this warning multiple times when opening the app, becausethis.ethQuery
it was not defined yet at theAccountTrackerController
when .It was added a condition to only update the balance if it was possible to get balance from chain.
Core PR: MetaMask/core#3933
Related issues
Fixes:
Manual testing steps
undefined is not an object (evaluating 'inputBn.toString')
Screenshots/Recordings
Before
After
e
Smoke E2E test builds: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/a075edf7-676e-4d24-8b0d-014890863b6d
Regression E2E test builds: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/30f56c4e-3811-432c-83f0-139ea5b16ff5
Pre-merge author checklist
Pre-merge reviewer checklist