Created
February 9, 2024 22:46
-
-
Save nhuxhr/9282749f3e24fff38687c067d8ab12c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use { | |
anchor_lang::prelude::*, | |
anchor_spl::{associated_token, token_2022}, | |
}; | |
declare_id!("11111111111111111111111111111111"); | |
#[program] | |
pub mod contract { | |
use super::*; | |
pub fn init(_ctx: Context<Init>) -> Result<()> { | |
// Not reached | |
Ok(()) | |
} | |
} | |
#[derive(Accounts)] | |
pub struct Init<'info> { | |
#[account(mut)] | |
pub creator: Signer<'info>, | |
pub rent: Sysvar<'info, Rent>, | |
pub system_program: Program<'info, System>, | |
pub token_program: Program<'info, token_2022::Token2022>, | |
pub associated_token_program: Program<'info, associated_token::AssociatedToken>, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment