Refactor: Use instruction_trace instead of instruction_context_stack (#22988)
* Moves stack_height of the instruction_trace into InstructionContext. * Uses nesting_level instead of stack_height internally in transaction_context.rs * Uses the instruction_trace instead of the instruction_context_stack internally. * Adds feature gate: record_instruction_in_transaction_context_push.
This commit is contained in:
committed by
GitHub
parent
e545828fc5
commit
226a71f073
@ -103,7 +103,7 @@ fn create_inputs() -> TransactionContext {
|
||||
let mut transaction_context = TransactionContext::new(transaction_accounts, 1, 1);
|
||||
let instruction_data = vec![1u8, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
|
||||
transaction_context
|
||||
.push(&[0], &instruction_accounts, &instruction_data)
|
||||
.push(&[0], &instruction_accounts, &instruction_data, true)
|
||||
.unwrap();
|
||||
transaction_context
|
||||
}
|
||||
|
Reference in New Issue
Block a user