wen-community / wen-program-library

Apache License 2.0
90 stars 21 forks source link

Add manager account initialization #32

Closed Aiyualive closed 8 months ago

Aiyualive commented 8 months ago

Done:

Notes: It is not necessary to initialize the manager account PDA. However, due to the deserialization of Account<'info, Manager> it will expect the account to already be initialized. Alternatively you could simply specify AccountInfo without specifying the struct:

    #[account(
        seeds = [MANAGER_SEED],
        bump
    )]
    /// CHECK:
    pub manager: AccountInfo<'info>,