Open jackalchenxu opened 2 years ago
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 wallet.signTransaction.value
works and the transaction is signed for all wallets... While checking why the error might have occured with wallet.sendTransaction
I found out that in the phantom wallet adapter code the function is named signAndSendTransaction()
which might be the overall cause of the error...
Maybe the SendOptions
is required for wallet.sendTransaction
method. Initialize connection with commitmentOrConfig
works. const connection = new Connection(clusterApiUrl('devnet'), 'confirmed')
.
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.