pub fn start_stuff_off(ctx: Context<StartStuffOff>) -> ProgramResult {

        // - get a reference to the account which holds the state
        //  - &mut defines a "mutable reference" to base_account.
        // - Otherwise base_account would simply be a "local copy"
        let base_account = &mut ctx.accounts.base_account;

        // - Initialize the state
        base_account.total_gifs = 0;

        // - Do nothing but return `Result` type
        Ok(())
    }
// - function with type signature
// - Initialize the total_gif count on the base accout
function with type signature
Initialize the total_gif count on the base accout
function with type signature Initialize the total_gif count on the base accout
pub fn start_stuff_off(ctx: Context<StartStuffOff>) -> ProgramResult {
        // - get a reference to the account which holds the state
        //  - &mut defines a "mutable reference" to base_account.
        // - Otherwise base_account would simply be a "local copy"
        let base_account = &mut ctx.accounts.base_account;
        // - Initialize the state
        base_account.total_gifs = 0;
        // - Do nothing but return `Result` type
        Ok(())
    }
pub fn start_stuff_off ( ctx : Context < StartStuffOff > ) -> ProgramResult { // - get a reference to the account which holds the state //  - &mut defines a "mutable reference" to base_account. // - Otherwise base_account would simply be a "local copy" let base_account = & mut ctx . accounts . base_account ; // - Initialize the state base_account . total_gifs = 0 ; // - Do nothing but return `Result` type Ok ( ( ) ) }
function with type signature
 Initialize the total_gif count on the base accout
function with type signature Initialize the total_gif count on the base accout
ctx
Context<StartStuffOff>
ctx
Context<StartStuffOff>