suiet / wallet-kit

The first choice to connect all wallets on Sui blockchain
https://kit.suiet.app
MIT License
166 stars 60 forks source link

This event is invalid.”accountChange“ #313

Open W123-T opened 2 months ago

W123-T commented 2 months ago

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 commented 1 month ago

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?