| 42 | |
| 43 | #[derive(Accounts)] |
| 44 | pub struct Increment<'info> { |
| 45 | // The address of the `Counter` account must be a PDA derived with the specified `seeds` |
| 46 | #[account( |
| 47 | mut, |
| 48 | seeds = [b"counter"], // optional seeds for pda |
| 49 | bump = counter.bump, // bump seed for pda stored in `Counter` account |
| 50 | )] |
| 51 | pub counter: Account<'info, Counter>, |
| 52 | } |
| 53 | |
| 54 | #[account] |
| 55 | #[derive(InitSpace)] |
nothing calls this directly
no outgoing calls
no test coverage detected