|
@@ -141,6 +141,11 @@ impl TransactionContext {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ #[cfg(feature = "dev-context-only-utils")]
|
|
|
|
|
+ pub fn set_top_level_instruction_index(&mut self, top_level_instruction_index: usize) {
|
|
|
|
|
+ self.top_level_instruction_index = top_level_instruction_index;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/// Used in mock_process_instruction
|
|
/// Used in mock_process_instruction
|
|
|
#[cfg(not(target_os = "solana"))]
|
|
#[cfg(not(target_os = "solana"))]
|
|
|
pub fn deconstruct_without_keys(self) -> Result<Vec<AccountSharedData>, InstructionError> {
|
|
pub fn deconstruct_without_keys(self) -> Result<Vec<AccountSharedData>, InstructionError> {
|