Skip to content

Commit

Permalink
explicit else clause
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed Apr 26, 2023
1 parent 0045969 commit 7ca824f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4155,13 +4155,14 @@ impl Bank {
return Ok(slot);
}
}
return Err(TransactionError::ProgramAccountNotFound);
Err(TransactionError::ProgramAccountNotFound)
} else if loader_v3::check_id(program.owner()) {
let state = solana_loader_v3_program::get_state(program.data())
.map_err(|_| TransactionError::ProgramAccountNotFound)?;
return Ok(state.slot);
Ok(state.slot)
} else {
Ok(0)
}
Ok(0)
}

#[allow(dead_code)] // Preparation for BankExecutorCache rework
Expand Down

0 comments on commit 7ca824f

Please sign in to comment.