diff --git a/sdk/pinocchio/src/program.rs b/sdk/pinocchio/src/program.rs index 6cfa8fa..289c9c2 100644 --- a/sdk/pinocchio/src/program.rs +++ b/sdk/pinocchio/src/program.rs @@ -285,7 +285,7 @@ pub fn get_return_data() -> Option { let size = unsafe { crate::syscalls::sol_get_return_data( - data.as_mut_ptr(), + data.as_mut_ptr() as *mut u8, data.len() as u64, &mut program_id, )