diff --git a/programs/4-initialization/recommended/src/lib.rs b/programs/4-initialization/recommended/src/lib.rs index 0c344a0..fbe8c9b 100644 --- a/programs/4-initialization/recommended/src/lib.rs +++ b/programs/4-initialization/recommended/src/lib.rs @@ -7,6 +7,8 @@ pub mod reinitialization_4 { use super::*; pub fn init(_ctx: Context) -> ProgramResult { + let user = &mut ctx.accounts.user; + user.authority = *ctx.accounts.authority.key; msg!("GM"); Ok(()) }