MCPcopy Create free account
hub / github.com/AlmostEfficient/full-stack-solana-dev / Increment

Class Increment

counter/programs/counter/src/lib.rs:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43#[derive(Accounts)]
44pub 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)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected