nudge
This commit is contained in:
@ -133,7 +133,9 @@ fn bench_program_alu(bencher: &mut Bencher) {
|
||||
}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
pub struct MockInvokeContext {}
|
||||
pub struct MockInvokeContext {
|
||||
key: Pubkey,
|
||||
}
|
||||
impl InvokeContext for MockInvokeContext {
|
||||
fn push(&mut self, _key: &Pubkey) -> Result<(), InstructionError> {
|
||||
Ok(())
|
||||
@ -148,4 +150,7 @@ impl InvokeContext for MockInvokeContext {
|
||||
) -> Result<(), InstructionError> {
|
||||
Ok(())
|
||||
}
|
||||
fn get_caller(&self) -> Result<&Pubkey, InstructionError> {
|
||||
Ok(&self.key)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user