All Questions
6 questions
2
votes
1
answer
37
views
Relational PDA design through seeds
I have somewhat what seems to be a fairly simple question.
Lets assume we are building a Todo list where everything is public. And lets say a user will be able to create a new Task and that task will ...
0
votes
1
answer
74
views
How can i enter a Vec<PubKey> in the solana play ground?
I want to enter a Vec as input But i can't do that i don't know what is wrong !
1
vote
2
answers
567
views
Is there a way to overwrite data in an account?
I have a PDA account, and I am trying to change the data format in the account.
from this
#[account]
pub dummy_data {
x_point: f32
}
to
#[account]
pub dummy_data {
x_point: u64,
y_point: f64,
...
3
votes
1
answer
4k
views
Error Message: A seeds constraint was violated
Here is my code
#[program]
pub mod anchor_code {
use super::*;
pub fn new_wallet(ctx: Context<WalletInfo>) -> Result<()>{
Ok(())
}
}
#[derive(Accounts)]
pub struct ...
2
votes
1
answer
376
views
Getting error when using bump with a target
fairly new to Solana/anchor dev here. When i anchor build i get this error:
thread 'main' panicked at 'Code not parseable: Error("bump targets should not be provided with init. Please use bump ...
1
vote
2
answers
209
views
Using Anchor, how to have PDA created without the PDA info being sent by the client?
Program:
#[derive(Accounts)]
pub struct Transact<'info> {
#[account(init, payer=payer, space= 8 + 1 + 4, seeds=[b"transaction", payer.key.as_ref()], bump)]
pub transaction: ...