Uh oh!
There was an error while loading. Please reload this page.
refactor: migrate {Approval,Transaction,Network,GasFee,AssetsContract,Nft,Tokens}Controller messengers - #6386
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ApprovalController to @metamask/messenger{Approval,Transaction,Network}Controller to @metamask/messengermcmire
commented
Aug 28, 2025
It looks like these changes cause some issues with the |
Ah, thanks for pointing that out! It looks like EDIT: I was able to go around this by adding a |
1292cb6 to
6210cf2Compare{Approval,Transaction,Network}Controller to @metamask/messenger{Approval,Transaction,Network}Controller and polling controllers to @metamask/messengerc0c7c01 to
f482a84Compare{Approval,Transaction,Network}Controller and polling controllers to @metamask/messenger{Approval,Transaction,Network,GasFee}Controller to @metamask/messengerb961f39 to
bf8b850Compare{Approval,Transaction,Network,GasFee}Controller to @metamask/messenger{Approval,Transaction,Network,GasFee,AssetsContract,Nft,Tokens}Controller messengers| export const StaticIntervalPollingControllerNext = < | ||
| PollingInput extends Json, | ||
| >() => | ||
| StaticIntervalPollingControllerMixin<typeof BaseControllerNext, PollingInput>( | ||
| BaseControllerNext, | ||
| ); |
There was a problem hiding this comment.
This has been added to untangle gas-fee-controller from other polling controllers, and is being removed in #6444
mcmire
commented
Oct 7, 2025
Looks like there are conflicts :( |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Explanation
This PR migrates the
ApprovalController,TransactionController,GasFeeController,NetworkController,AssetsContractController,TokensControllerandNftControllerclasses to the new@metamask/messengercomm system along with their tests, as opposed to the one exported from@metamask/base-controller.The three packages are being migrated together because the
TransactionControllerIntegration.test.tsfile ties them together.References
Checklist
Note
Migrates major controllers to the new @metamask/messenger with updated state metadata and tests, adds StaticIntervalPollingControllerNext, and updates package configs and changelogs (breaking).
ApprovalController,TransactionController,NetworkController,GasFeeController,AssetsContractController,NftController,TokensControllerfromRestrictedMessengerto new@metamask/messenger.@metamask/base-controllerAPIs with@metamask/base-controller/nextwhere applicable; update state metadata keys (anonymous->includeInDebugSnapshot).this.messenger.registerActionHandler/subscribe/publish/call).StaticIntervalPollingControllerNext;GasFeeControllernow extends it.GasFeeMessengertype.@metamask/messengerdependency and TS project references across affected packages; adjust imports to/nextvariants.messengerlinks.Written by Cursor Bugbot for commit c2dee6e. This will update automatically on new commits. Configure here.