Skip to content

Commit

Permalink
avoid the use of extend_from_slice when appending instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim-crypto committed Nov 12, 2024
1 parent f3bd048 commit 884b761
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ pub fn rotate_supply_elgamal_pubkey(
},
)];

instructions.extend_from_slice(&proof_instructions);
instructions.extend(proof_instructions);

Ok(instructions)
}
Expand Down Expand Up @@ -461,7 +461,7 @@ pub fn confidential_mint_with_split_proofs(
},
)];

instructions.extend_from_slice(&proof_instructions);
instructions.extend(proof_instructions);

Ok(instructions)
}
Expand Down Expand Up @@ -543,7 +543,7 @@ pub fn confidential_burn_with_split_proofs(
},
)];

instructions.extend_from_slice(&proof_instructions);
instructions.extend(proof_instructions);

Ok(instructions)
}

0 comments on commit 884b761

Please sign in to comment.