Skip to content

Commit

Permalink
CPI support for bpf_loader_deprecated (#11695)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4683012)

# Conflicts:
#	programs/bpf_loader/src/syscalls.rs
  • Loading branch information
jackcmay authored and mergify-bot committed Aug 25, 2020
1 parent f162c6d commit 1030301
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions programs/bpf_loader/src/syscalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ use solana_sdk::{
account::Account,
account::KeyedAccount,
account_info::AccountInfo,
<<<<<<< HEAD
bpf_loader,
entrypoint::SUCCESS,
entrypoint_native::{ComputeMeter, InvokeContext, Logger},
=======
bpf_loader, bpf_loader_deprecated,
entrypoint::{MAX_PERMITTED_DATA_INCREASE, SUCCESS},
entrypoint_native::{InvokeContext, Logger},
>>>>>>> 46830124f... CPI support for bpf_loader_deprecated (#11695)
instruction::{AccountMeta, Instruction, InstructionError},
message::Message,
program_error::ProgramError,
Expand Down Expand Up @@ -886,6 +892,7 @@ fn call<'a>(
message_processor.add_program(*program_id, *process_instruction);
}
message_processor.add_loader(bpf_loader::id(), crate::process_instruction);
message_processor.add_loader(bpf_loader_deprecated::id(), crate::process_instruction);
message_processor.set_cross_program_support(invoke_context.is_cross_program_supported());

#[allow(clippy::deref_addrof)]
Expand Down

0 comments on commit 1030301

Please sign in to comment.