Function light_test_utils::spl::create_token_account
source ยท pub async fn create_token_account(
context: &mut ProgramTestContext,
mint: &Pubkey,
account_keypair: &Keypair,
owner: &Keypair
) -> Result<(), BanksClientError>Expand description
Creates an spl token account and initializes it with the given mint and owner. This function is useful to create token accounts for spl compression and decompression tests.