solana-wallets-vue icon indicating copy to clipboard operation
solana-wallets-vue copied to clipboard

Example of how to sign a message

Open alexandr-kazakov opened this issue 2 years ago • 3 comments

alexandr-kazakov avatar Jun 03 '22 15:06 alexandr-kazakov

I'd like to follow up on this, and I'm also getting the following errors when using useWallet() reference:

signMessage:

Uncaught (in promise) TypeError: signMessage is not a function

Sending SOL usage https://github.com/lorisleiva/solana-wallets-vue#usage

WalletSendTransactionError: Missing or invalid parameters. at PhantomWalletAdapter.sendTransaction (app.js:94893:23) at async sendTransaction (app.js:84972:12)

Any help would be greatly appreciated.

iamnotaprogrammer98 avatar Aug 12 '22 13:08 iamnotaprogrammer98

This issue should be fixed once the packages are updated as per #33

DjilanoS avatar Aug 30 '22 08:08 DjilanoS

@iamnotaprogrammer98 you need to set the commitment when setting up the connection. The demo in PR #34 is working as you can see in URL in the PR.

Aanhane avatar Sep 10 '22 07:09 Aanhane