Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Should be used for all things relating to the Anchor Framework.
0
votes
Failed to send transaction: Transaction simulation failed: Error processing Instruction 0: P...
I used a try catch block on typescript code and found the specific error. It was ProgramStackError. Fixed it by boxing the Escrow account.
Here's the updated context code:
#[derive(Accounts)]
pub stru …
0
votes
1
answer
229
views
Failed to send transaction: Transaction simulation failed: Error processing Instruction 0: P...
I am trying to initialize an escrow account and I keep getting this error.
Here's the instruction code
use crate::state::*;
use anchor_lang::prelude::*;
use anchor_spl::{token::{Mint, TokenAccount, To …
0
votes
0
answers
14
views
Error when trying to update an account on Solana built with anchor
Here's the error I am getting:
Link to transaction: https://explorer.solana.com/tx/5LSyn7NfjK4me56nU8fiYVb9RGXCe7AJ7MBFYKBfcvxh35sLN9krkYU7fFLTJWWW6iz3aTpu3K4kXdhwAb8kydEq?cluster=devnet
Here's the c …
1
vote
1
answer
778
views
TypeError: Cannot read properties of undefined (reading 'methods')
However, I keep getting the above error.
the steps I followed were
anchor init (project-name)
start solana-test-validator
anchor build -> anchor deploy
update program ids on both anchor.toml and lib.rs … anchor build -> anchor deploy
then run the test
default lib.rs with hello world
use anchor_lang::prelude::*;
declare_id! …
2
votes
0
answers
169
views
how to sign and send multiple transactions with single confirmation click of wallet popup?
I am aware of adding multiple instructions to a single transaction. But for my use case one transaction is not enough. I have created and signed multiple transactions but don't know how to send it at …
4
votes
1
answer
2k
views
failed: exceeded CUs meter at BPF instruction
I have an instruction which transfers tokens, pnft and closes the account. I get the above error when I call the instruction from the frontend.
Here's the instruction code
pub fn handler(ctx: Context< …