Skip to content

Commit

Permalink
make loader_v4 not executalbe
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoranYi committed Nov 30, 2023
1 parent 0d476a5 commit df9d94c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions programs/loader-v4/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1432,8 +1432,6 @@ mod tests {
test_loader_instruction_general_errors(LoaderV4Instruction::Retract);
}

/// TODO: revisit instruction transfer authority without executable flag!
#[ignore]
#[test]
fn test_loader_instruction_transfer_authority() {
solana_logger::setup();
Expand Down
3 changes: 2 additions & 1 deletion sdk/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,8 @@ pub fn is_executable(account: &AccountSharedData) -> bool {

if loader_v4::check_id(account.owner()) {
// LoaderV4Status (byte_offset = 40)
return account.data()[40] != 0;
// return account.data()[40] != 0;
return false; // TODO: return false for now
}

false
Expand Down

0 comments on commit df9d94c

Please sign in to comment.