Skip to content
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

Update tokens after importing account #8491

Merged
merged 1 commit into from
May 1, 2020

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented May 1, 2020

Tokens are now updated when the account switches after a failed account import. The usual account switching flow (via the account menu) already updated tokens, but this step was omitted when the account switched after a failed import.

Tokens are now updated when the account switches after a failed account
import. The usual account switching flow (via the account menu) already
updated tokens, but this step was omitted when the account switched
after a failed import.
@Gudahtt
Copy link
Member Author

Gudahtt commented May 1, 2020

This is required for an upcoming PR for v8.0.0 (the alert upon opening the popup when an unconnected account is selected).

Ideally this would get replaced with a full background state update, rather than just a token update. But that might have performance implications, and I'd rather not looking into that right now. For now at least we're consistent between these two actions.

@Gudahtt Gudahtt marked this pull request as ready for review May 1, 2020 15:23
@Gudahtt Gudahtt requested a review from a team as a code owner May 1, 2020 15:23
@metamaskbot
Copy link
Collaborator

Builds ready [502d1f4]
Page Load Metrics (625 ± 10 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint309137136
domContentLoaded5816776242110
load5826816252110
domInteractive5806776232110

Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@whymarrh whymarrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Gudahtt Gudahtt merged commit 902ed3d into develop May 1, 2020
@Gudahtt Gudahtt deleted the update-tokens-when-switching-account branch May 1, 2020 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants