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) }