Skip to content

Session change event#167

Open
0xEdouardEth wants to merge 3 commits into
tronweb3:mainfrom
0xEdouardEth:session-change-event
Open

Session change event#167
0xEdouardEth wants to merge 3 commits into
tronweb3:mainfrom
0xEdouardEth:session-change-event

Conversation

@0xEdouardEth

Copy link
Copy Markdown
Contributor

Replaces metamask_accountsChanged based account/status handling with wallet_sessionChanged based handling. The reason metamask_accountsChanged events were used before was because Multichain API methods did not return accounts ordered by last selected.

This is changing upstream so that Multichain API methods do return accounts ordered by last selected. This change allows us to get rid of our reliance on metamask_accountsChanged and simplify our logic.

This also makes it so that Tron connections granted outside of the Tron provider (i.e. missing sessionProperties.tron_metamask_accountsChanged: true) will also properly work with our Tron wallet adapter. Previously they did not in the scenario above.

See: MetaMask/metamask-extension#41068

@0xEdouardEth 0xEdouardEth marked this pull request as ready for review April 14, 2026 08:28
@0xEdouardEth

Copy link
Copy Markdown
Contributor Author

Would it be possible to get a review on this PR and an estimate of when we could merge and release it?

@zorro11639

Copy link
Copy Markdown
Contributor

@0xEdouardEth Which version of wallet I can test this feature ? I will test the android/ios/extension wallet and release it in the next two weeks.

@0xEdouardEth

Copy link
Copy Markdown
Contributor Author

Thanks for your quick reply.

You can test it with the latest version of the extension or Mobile.

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