export default class Example {
static PROGRAM_ID = new Pubkey("1111111111111111111111111111");
example_instruction(
system_program: SystemAccount
): Result {
}
}
use anchor_lang::prelude::*;
declare_id!("1111111111111111111111111111");
#[program]
pub mod example {
use super::*;
pub fn example_instruction(ctx: Context<ExampleInstructionContext>) -> Result<()> {
Ok(())
}
}
#[derive(Accounts)]
pub struct ExampleInstructionContext<'info> {
#[account(mut)]
pub system_program: SystemAccount<'info>,
pub system_program: Program<'info, System>,
}
either need to mention this in docs this behaviour, either introduce reserved keywords or handle the overlap between variables
example:
either need to mention this in
docs
this behaviour, either introduce reserved keywords or handle the overlap between variables