Skip to content

Commit

Permalink
Fix authority in bpf_loader_upgradeable::close_any (#21344)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored Nov 18, 2021
1 parent b30c94c commit 1a7cefd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/program/src/bpf_loader_upgradeable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ pub fn close_any(
AccountMeta::new(*recipient_address, false),
];
if let Some(authority_address) = authority_address {
metas.push(AccountMeta::new(*authority_address, true));
metas.push(AccountMeta::new_readonly(*authority_address, true));
}
if let Some(program_address) = program_address {
metas.push(AccountMeta::new(*program_address, false));
Expand Down

0 comments on commit 1a7cefd

Please sign in to comment.