pub fn create_account<T: ConfigState>(
    from_account_pubkey: &Pubkey,
    config_account_pubkey: &Pubkey,
    lamports: u64,
    keys: Vec<(Pubkey, bool)>,
) -> Vec<Instruction> {
    let space = T::max_space() + ConfigKeys::serialized_size(keys);
    vec![
        system_instruction::create_account(
            from_account_pubkey,
            config_account_pubkey,
            lamports,
            space,
            &id(),
        ),
        initialize_account::<T>(config_account_pubkey),
    ]
}
/// Create a new, empty configuration account
Create a new, empty configuration account
Create a new empty configuration account
pub fn create_account<T: ConfigState>(
    from_account_pubkey: &Pubkey,
    config_account_pubkey: &Pubkey,
    lamports: u64,
    keys: Vec<(Pubkey, bool)>,
) -> Vec<Instruction> {
    let space = T::max_space() + ConfigKeys::serialized_size(keys);
    vec![
        system_instruction::create_account(
            from_account_pubkey,
            config_account_pubkey,
            lamports,
            space,
            &id(),
        ),
        initialize_account::<T>(config_account_pubkey),
    ]
}
pub fn create_account < T : ConfigState > ( from_account_pubkey : & Pubkey , config_account_pubkey : & Pubkey , lamports : u64 , keys : Vec < ( Pubkey , bool ) > , ) -> Vec < Instruction > { let space = T :: max_space ( ) + ConfigKeys :: serialized_size ( keys ) ; vec ! [ system_instruction create_account ( from_account_pubkey config_account_pubkey lamports space id ( ) ) initialize_account T ( config_account_pubkey ) ] }
Create a new, empty configuration account
Create a new empty configuration account
from_account_pubkey
&Pubkey
config_account_pubkey
&Pubkey
lamports
u64
keys
Vec<(Pubkey, bool)>