Fix program account rent exemption (#14176) (#14180)

(cherry picked from commit 593ad80954)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2020-12-17 03:46:43 -08:00
committed by GitHub
parent 9aaf41bef2
commit ff728e5e56
4 changed files with 103 additions and 10 deletions

View File

@@ -8,9 +8,10 @@ use solana_program::{
entrypoint!(process_instruction);
fn process_instruction(
_program_id: &Pubkey,
_accounts: &[AccountInfo],
accounts: &[AccountInfo],
_instruction_data: &[u8],
) -> ProgramResult {
msg!("Upgradeable program");
assert_eq!(accounts.len(), 2);
Err(42.into())
}