-
Notifications
You must be signed in to change notification settings - Fork 93
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
create stake acccount #17
Comments
I'm pretty sure that signTransaction expects a Transaction, not |
I believe this is due to a mismatch of
|
Hi, I have the same problem. Any idea to fix this issue? |
@Sotatek-HungNgo3 which problem are you hitting? |
The |
The above code was getting a On a closer inspection of what the code is doing, it looks like it's trying to created a new Stake account using the wallet account to pay for it. So here we are dealing with two accounts, the new Stake account and our wallet account hence we need to sign with both accounts. But it looks like only the wallet is signing the tx here. I think adding these lines after line 85 should fix it, I haven't tried but let me know // After line 85
transaction.feePayer = wallet.publicKey; // Specify Fee payer
transaction.partialSign(newStakeAccount); |
is code for staking running now ? |
hey,
i wonder how to create stakeAccount using this wallet adapter, since the current signTransaction wallet method expect TransactionInstruction type while create stakeAccount is Transaction type, so it already signed
any ideas?
The text was updated successfully, but these errors were encountered: