Rent account passed to loader can be read-only (#13997)
This commit is contained in:
parent
dca579851c
commit
20c0e8793e
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue