Skip to content

Commit ea1d157

Browse files
committed
[wip]: Fix instruction data offset
1 parent 65b272c commit ea1d157

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

program/src/processor/write.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ pub fn write(accounts: &[AccountInfo], instruction_data: &[u8]) -> ProgramResult
5858
// SAFETY: single mutable borrow of `buffer` account data. There
5959
// are no other borrows active.
6060
let data = unsafe { buffer.borrow_mut_data_unchecked() };
61+
let instruction_data = args.data();
6162

6263
unsafe {
6364
sol_memcpy(

0 commit comments

Comments
 (0)