You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's because signMessage is an optional interface method -- Phantom is the first wallet to support it. You need to check if the method is defined before you use it, e.g. if (signMessage) { ... }
You'll see that the button to sign a message only appears when Phantom is selected and is only enabled when it's connected.
If you know you're only going to use wallets that support this optional API, you can pass only Phantom for now to your wallets array, and then you can use the method as long as it's connected.
I am trying to sign a message and it worked once I am not sure why but most of the time it return error saying sendMessage is not a function
The text was updated successfully, but these errors were encountered: