-
Notifications
You must be signed in to change notification settings - Fork 37
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
sendSplToken: invalid account data for instruction #94
Comments
Hi @ajamaica @samuelvanderwaal @creativedrewy I too am getting the issue message=Transaction simulation failed: Error processing Instruction 0: invalid account data for instruction)) My rust file includes:
} #[derive(Accounts)] import { describe("demo", () => { const program = anchor.workspace.Demo as Program; it("Is initialized!", async () => {
); await program.methods.approveToken(new anchor.BN(100)).accounts({ }); Please do help I am unable to proceed due to the error |
Fixed on #107 |
While sending transaction with original solana address I get this exception, however all params are correct.
java.lang.Exception: invalidResponse(rpcError=RPCError(code=-32002, message=Transaction simulation failed: Error processing Instruction 0: invalid account data for instruction))
Method:
solana.action.sendSPLTokens(
PublicKey(tokenAddress),
account.publicKey,
PublicKey(address),
amount.toLong(),
allowUnfundedRecipient = true,
account
)
The text was updated successfully, but these errors were encountered: