nudge
This commit is contained in:
parent
af84dff9ef
commit
bfe179e911
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue