-
Notifications
You must be signed in to change notification settings - Fork 68
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
signTransaction() not worked, error as "WalletSignTransactionError: Expected String" #29
Comments
Recently there have been lots of errors on the phantom side of solana. While using wallet.sendTransaction() it shows "Missing or Invalid Parameters" with a long stack trace leading back to solana-wallets-vue... I feel this is related so I decided to drop it here.... And I tried the adapters on react and it worked so... |
Yep facing the same issue here. I've tried updating the dependencies but without a guide on how to contribute to the project, it's hard. I'm unable to test the package properly, as I also can't get a fork to simply compile. |
So after trying somethings I found out |
Maybe the |
Hello, lorisleiva, thanks for your great work.
i'm now trying use
solana-wallets-vue
with Vue3 and make a simple test, like the sample code;wallet software is Phantom, installed as Chrome plugin;
wallet is changed to use your lib.
the sample code is like below:
the error occurs at
let signed = await wallet.signTransaction(transaction);
, the error message as:WalletSignTransactionError: Expected String
at PhantomWalletAdatapter,signTransactioni trace the code, and under the hood, the code shows wallet need its secretkey to sign a transaction, but all know, the wallet doesn't expose the secretkey.
if we change the above sample code, not sign the transaction, but directly sendTransaction(...), it will work!
(sendTransaction will still partialsignTransaction, but in itself inner implementation of wallet code)
Here is my question:
if you need the full code to reproduce the issue , please comment.
The text was updated successfully, but these errors were encountered: