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

[tokens-controller] Expose getState action and stateChange event #4271

Closed
tommasini opened this issue May 8, 2024 · 4 comments · Fixed by #4304
Closed

[tokens-controller] Expose getState action and stateChange event #4271

tommasini opened this issue May 8, 2024 · 4 comments · Fixed by #4304
Assignees
Labels
bug Something isn't working team-wallet-framework

Comments

@tommasini
Copy link
Contributor

With Token Detection Controller and Token Balances Controller, calling "TokensController:getState" action and subscribing "TokensController:stateChange" event, the Tokens Controller needs to be updated to extend Base Controller v2, to start to expose this action and this event and this action.

Where they are currently being used
Token Detection Controller:

this.messagingSystem.call('TokensController:getState');

Token Balances Controller:
this.messagingSystem.subscribe(

@Gudahtt Gudahtt added the bug Something isn't working label May 8, 2024
@Gudahtt
Copy link
Member

Gudahtt commented May 8, 2024

I don't think we need to update it to BaseControllerV2 necessarily, we just need to add the missing action and event

@tommasini
Copy link
Contributor Author

Ah okok! I thought that it was something that we wanted to do to to every controller that it was still extending v1, sorry my mistake!

@Gudahtt
Copy link
Member

Gudahtt commented May 8, 2024

Oh we definitely want to update everything to BaseControllerV2, but that might be a bit more challenging than just adding the missing action and event. Unsure in this case. We can solve this either way.

@MajorLift MajorLift changed the title Update Tokens Controller to extend Base Controller V2 [tokens-controller] Expose getState action and stateChange event May 9, 2024
@MajorLift MajorLift self-assigned this May 9, 2024
@MajorLift
Copy link
Contributor

I agree that the BaseControllerV2 upgrade for TokensController should be tracked in its own ticket since it involves more tasks: #4075.

I edited the title to reflect this and narrow the scope of this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working team-wallet-framework
Projects
None yet
3 participants