Add built-in programs to InvokeContext (#10383) (#10402)

automerge
This commit is contained in:
mergify[bot]
2020-06-03 14:25:16 -07:00
committed by GitHub
parent aed1e51ef1
commit 56e8319a6d
7 changed files with 36 additions and 14 deletions

View File

@@ -6,7 +6,7 @@ use byteorder::{ByteOrder, LittleEndian, WriteBytesExt};
use solana_rbpf::EbpfVm;
use solana_sdk::{
account::Account,
entrypoint_native::InvokeContext,
entrypoint_native::{InvokeContext, ProcessInstruction},
instruction::{CompiledInstruction, InstructionError},
message::Message,
pubkey::Pubkey,
@@ -152,4 +152,7 @@ impl InvokeContext for MockInvokeContext {
fn get_caller(&self) -> Result<&Pubkey, InstructionError> {
Ok(&self.key)
}
fn get_programs(&self) -> &[(Pubkey, ProcessInstruction)] {
&[]
}
}