Skip to content

Commit

Permalink
rename arg
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Jan 15, 2025
1 parent 52e8325 commit f721347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/svm/testing/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ pub fn warp_to_unix(svm: &mut litesvm::LiteSVM, unix_timestamp: i64) {
pub fn assert_custom_error(
error: TransactionError,
instruction_index: u8,
custom_error: InstructionError,
instruction_error: InstructionError,
) {
match error {
TransactionError::InstructionError(index, error_variant) => {
assert_eq!(index, instruction_index);
assert_eq!(error_variant, custom_error);
assert_eq!(error_variant, instruction_error);
}
_ => panic!("Unexpected error variant"),
}
Expand Down

0 comments on commit f721347

Please sign in to comment.