Skip to content

Commit

Permalink
nudge
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay committed Aug 16, 2020
1 parent 364ecab commit c8b12ab
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions programs/bpf_loader/src/syscalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,26 +94,26 @@ pub fn register_syscalls<'a>(
)?;
if invoke_context.is_cross_program_supported() {
vm.register_syscall_ex("sol_create_program_address", syscall_create_program_address)?;
}

// Cross-program invocation syscalls
// Cross-program invocation syscalls

let invoke_context = Rc::new(RefCell::new(invoke_context));
let invoke_context = Rc::new(RefCell::new(invoke_context));

vm.register_syscall_with_context_ex(
"sol_invoke_signed_c",
Box::new(SyscallProcessSolInstructionC {
callers_keyed_accounts,
invoke_context: invoke_context.clone(),
}),
)?;
vm.register_syscall_with_context_ex(
"sol_invoke_signed_rust",
Box::new(SyscallProcessInstructionRust {
callers_keyed_accounts,
invoke_context: invoke_context.clone(),
}),
)?;
}
vm.register_syscall_with_context_ex(
"sol_invoke_signed_c",
Box::new(SyscallProcessSolInstructionC {
callers_keyed_accounts,
invoke_context: invoke_context.clone(),
}),
)?;
vm.register_syscall_with_context_ex(
"sol_invoke_signed_rust",
Box::new(SyscallProcessInstructionRust {
callers_keyed_accounts,
invoke_context: invoke_context.clone(),
}),
)?;

// Memory allocator
let heap = vec![0_u8; DEFAULT_HEAP_SIZE];
Expand Down

0 comments on commit c8b12ab

Please sign in to comment.