From 20c0e8793e589385059f76a61f1dbe6fcb92db23 Mon Sep 17 00:00:00 2001 From: Jack May Date: Mon, 7 Dec 2020 11:44:32 -0800 Subject: [PATCH] Rent account passed to loader can be read-only (#13997) --- sdk/program/src/loader_instruction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/program/src/loader_instruction.rs b/sdk/program/src/loader_instruction.rs index 17a0c207a2..10183ea5f6 100644 --- a/sdk/program/src/loader_instruction.rs +++ b/sdk/program/src/loader_instruction.rs @@ -47,7 +47,7 @@ pub fn write( pub fn finalize(account_pubkey: &Pubkey, program_id: &Pubkey) -> Instruction { let account_metas = vec![ AccountMeta::new(*account_pubkey, true), - AccountMeta::new(rent::id(), false), + AccountMeta::new_readonly(rent::id(), false), ]; Instruction::new(*program_id, &LoaderInstruction::Finalize, account_metas) }