This commit is contained in:
Michael Vines
2021-04-18 10:27:36 -07:00
committed by mergify[bot]
parent b379004c3b
commit f59d4f29d9
39 changed files with 113 additions and 144 deletions

View File

@@ -76,7 +76,7 @@ pub fn create_and_cache_executor(
use_jit: bool,
) -> Result<Arc<BpfExecutor>, InstructionError> {
let bpf_compute_budget = invoke_context.get_bpf_compute_budget();
let mut program = Executable::<BpfError, ThisInstructionMeter>::from_elf(
let mut program = <dyn Executable<BpfError, ThisInstructionMeter>>::from_elf(
data,
None,
Config {
@@ -921,7 +921,7 @@ mod tests {
];
let input = &mut [0x00];
let program = Executable::<BpfError, TestInstructionMeter>::from_text_bytes(
let program = <dyn Executable<BpfError, TestInstructionMeter>>::from_text_bytes(
program,
None,
Config::default(),

View File

@@ -571,9 +571,9 @@ mod tests {
offset += size_of::<u64>();
accounts.push(AccountInfo {
key,
is_signer,
is_writable,
key,
lamports,
data,
owner,