Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
kekti's user avatar
  • 55
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 !
pooria sarkhan's user avatar
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, ...
Jimii's user avatar
  • 7,672
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 ...
Pixeled's user avatar
  • 486
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 ...
ZeRo's user avatar
  • 33
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: ...
DevelopingJoku's user avatar