Skip to main content

ProgramTestExt

Trait ProgramTestExt 

Source
pub trait ProgramTestExt {
    // Required method
    fn deploy_program(&mut self, program_id: Pubkey, program_bytes: &[u8]);
}
Expand description

Extension trait for AnchorContext to provide program deployment

Required Methods§

Source

fn deploy_program(&mut self, program_id: Pubkey, program_bytes: &[u8])

Deploy an additional program to this context

§Example
ctx.deploy_program(other_program_id, &other_program_bytes);

Implementors§