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

This event is invalid.”accountChange“ #313

Open
W123-T opened this issue Sep 23, 2024 · 1 comment
Open

This event is invalid.”accountChange“ #313

W123-T opened this issue Sep 23, 2024 · 1 comment

Comments

@W123-T
Copy link

W123-T commented Sep 23, 2024

useEffect(() => {
if (suiWalletObj?.connected) {
suiWalletObj.on('accountChange', () => {
suiQueryState()
})
suiWalletObj.on('chainChange', () => {
suiQueryState()
})
}
}, [suiQueryState, suiWalletObj])
I switched wallet addresses in the plugin wallet, and it seems that it won't trigger the "accountant change" operation, while switching environments will trigger the "chain change" operation
This event is invalid.”accountChange“

@bruceeewong
Copy link
Contributor

Hey, this accountChange feature depends on the implementation of the extension wallets (aka plugin wallet). Could you please tell me which wallet are you testing with?

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

No branches or pull requests

2 participants