Function spl_governance::tools::account::create_and_serialize_account_signed [−][src]
pub fn create_and_serialize_account_signed<'a, T: BorshSerialize + AccountMaxSize>(
payer_info: &AccountInfo<'a>,
account_info: &AccountInfo<'a>,
account_data: &T,
account_address_seeds: &[&[u8]],
program_id: &Pubkey,
system_info: &AccountInfo<'a>,
rent: &Rent
) -> Result<(), ProgramError>
Expand description
Creates a new account and serializes data into it using the provided seeds to invoke signed CPI call Note: This functions also checks the provided account PDA matches the supplied seeds