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