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 1591
3 votes
1 answer
279 views

How do you repopen a closed account?

If an account has been closed with the following anchor context: #[account( mut, close = user, seeds = [ SEED_SCHEMA.as_bytes(), &user.key().as_ref(), … ], bump )] pub account: Box<Account<'info, Account>>, Can it be "repoened" again, if invoked with init and the same seeds? …
mega_creamery's user avatar
3 votes
3 answers
285 views

Extending struct fields in a PDA and ensuring compatibility

As a simple illustrative example, consider this account structure: #[account] pub struct AccountA { pub variableA: u32, } Now I modify it, so so the program pads PDAs as such: #[account] pub struct … There is a plan to implement a function to resize and extend the existing account, but I want the transition to be seamless. …
mega_creamery's user avatar
1 vote
2 answers
153 views

Are enums with associated values permitted?

I can run code and test against code that has an account that has following enum: #[derive(Debug, AnchorSerialize, AnchorDeserialize, Clone, Copy, PartialEq, Eq)] pub enum HandResult { Win, Lose …
mega_creamery's user avatar