Skip to content

Commit

Permalink
add the two syscalls that are not defined in solana-define-syscall
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Feb 9, 2025
1 parent 7944520 commit 66a197f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sdk/pinocchio/src/syscalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@
#[cfg(target_feature = "static-syscalls")]
pub use solana_define_syscall::sys_hash;
pub use solana_define_syscall::{define_syscall, definitions::*};

use crate::{
instruction::{AccountMeta, ProcessedSiblingInstruction},
pubkey::Pubkey,
};

define_syscall!(fn sol_get_return_data(data: *mut u8, length: u64, program_id: *mut Pubkey) -> u64);
define_syscall!(fn sol_get_processed_sibling_instruction(index: u64, meta: *mut ProcessedSiblingInstruction, program_id: *mut Pubkey, data: *mut u8, accounts: *mut AccountMeta) -> u64);

0 comments on commit 66a197f

Please sign in to comment.