diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index c5d2267651653e..7e5812523ae8ff 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -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