Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-neon committed Jun 4, 2024
1 parent 092da29 commit 5adb901
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion transfer-tokens/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ pub fn process_instruction(
) -> ProgramResult {
// Create an iterator to safely reference accounts in the slice
let account_info_iter = &mut accounts.iter();
set_return_data(_instruction_data);
// Set return data to the integer value which increments for each transfer
let return_data = [0u8; 8];
set_return_data(&return_data);
// As part of the program specification the instruction gives:
let source_info = next_account_info(account_info_iter)?; // 1.
let mint_info = next_account_info(account_info_iter)?; // 2.
Expand Down

0 comments on commit 5adb901

Please sign in to comment.