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

Make both callback and messaging system options for TokenListController & GasFeeController when listening to NetworkController #932

Merged
merged 11 commits into from
Oct 12, 2022

Conversation

adonesky1
Copy link
Contributor

  • FIXED:

    • onNetworkStateChanged callback was mistakenly removed from TokenListController in v32.0.0. It is now added back and is available as an option alongside a messaging system subscription for syncing with NetworkController updates

@adonesky1 adonesky1 requested a review from a team as a code owner October 11, 2022 18:45
@adonesky1 adonesky1 changed the title Revert token list controller messaging Make both callback and messaging system options for TokenListController listening to NetworkController Oct 11, 2022
@adonesky1 adonesky1 changed the title Make both callback and messaging system options for TokenListController listening to NetworkController Make both callback and messaging system options for TokenListController & GasFeeController when listening to NetworkController Oct 11, 2022
@adonesky1 adonesky1 changed the title Make both callback and messaging system options for TokenListController & GasFeeController when listening to NetworkController Make both callback and messaging system options for TokenListController & GasFeeController when listening to NetworkController Oct 11, 2022
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

Looks good once a test has been added for the gas fee controller changes!

@adonesky1 adonesky1 force-pushed the revert-tokenListController-messaging branch from 5dd4cf6 to 6d87362 Compare October 12, 2022 13:54
Copy link
Member

@Gudahtt Gudahtt 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
Copy link
Member

Gudahtt commented Oct 12, 2022

We talked on Slack and decided to postpone the testing until later. The tests for that controller are in rough shape, and this functionality was already untested.

@adonesky1 adonesky1 merged commit bcea6ad into main Oct 12, 2022
@adonesky1 adonesky1 deleted the revert-tokenListController-messaging branch October 12, 2022 14:02
@adonesky1 adonesky1 mentioned this pull request Oct 12, 2022
gantunesr pushed a commit that referenced this pull request Dec 8, 2022
…ler` & `GasFeeController` when listening to `NetworkController` (#932)

* support either callback or messaging system subscription for NetworkController on GasFeeController and TokenListController
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
…ler` & `GasFeeController` when listening to `NetworkController` (#932)

* support either callback or messaging system subscription for NetworkController on GasFeeController and TokenListController
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
…ler` & `GasFeeController` when listening to `NetworkController` (#932)

* support either callback or messaging system subscription for NetworkController on GasFeeController and TokenListController
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.

2 participants