Skip to main content
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
Results tagged with
Search options questions only not deleted user 668
1 vote
1 answer
993 views

the trait `anchor_lang::AccountSerialize` is not implemented for `Requester

The Requester struct looks like this #[account(zero_copy)] pub struct Requester { pub authority: Pubkey, pub oracle: Pubkey, pub created_at: i64, pub count: u64, pub last_updated: …
Icus1's user avatar
  • 451
5 votes
1 answer
441 views

Vulnerabilities of the init_if_needed in anchor

I understand that the init keyword in anchor creates and set the default values of an account ,while the ini_if_needed does the same thing and also doesn’t throw an error if the account has already be …
Icus1's user avatar
  • 451
9 votes
2 answers
237 views

How to use PDAs instead of Hash maps

I'm trying to build a crowdfunding dapp and I want to store/map the Pubkey to the amount donated. I also want to get the Top 10 donors. What would have been suitable for this kind of data is hashmap b …
Icus1's user avatar
  • 451