signPersonalMessage can't result valid signature
Problem
Can @suiet/wallet-kit support wallet switch?
simple code below
wallet.adapter?.signPersonalMessage({ account: account!, message: new TextEncoder().encode('HelloXXX') })
Let's say I've logged in to a wallet now, and there's a ListBox comp in the upper right corner of my page to switch wallet addresses, when I switch, I call thesignPersonalMessage method, and then request the API after getting the signature, but I find that I can't get a valid signature using SignPersonalMessage
const verifyResult = await wallet.verifySignedMessage(res, account.publicKey)
console.log('verify signedMessage', verifyResult) // is false
Hi, currently our wallet kit does not support wallet switching from the DApp side. May I know how do you implement the switching logic? Can you also verify if the account of the "account.publicKey" is the one that the DApp connects to?
Close due to no response for a long time.