Add program-test tests to bpf programs (#16407)

This commit is contained in:
Jack May
2021-04-07 01:47:15 -07:00
committed by GitHub
parent 6cd4bc5e60
commit 476fd40948
9 changed files with 337 additions and 84 deletions

View File

@ -22,7 +22,11 @@ pub fn load_program<T: Client>(
let instruction = system_instruction::create_account(
&from_keypair.pubkey(),
&program_pubkey,
1,
1.max(
bank_client
.get_minimum_balance_for_rent_exemption(program.len())
.unwrap(),
),
program.len() as u64,
loader_pubkey,
);