Skip to content

Commit 3cf7c77

Browse files
committed
Rename error
1 parent 3c0f2b0 commit 3cf7c77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vm/src/hint_processor/builtin_hint_processor/secp/ec_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ pub fn n_pair_bits(
499499
return insert_value_from_var_name(result_name, 0, vm, ids_data, ap_tracking);
500500
}
501501
if m + 1 < number_of_pairs {
502-
return Err(HintError::NPairBitsMZero);
502+
return Err(HintError::NPairBitsTooLowM);
503503
}
504504

505505
let (scalar_v, scalar_u) = (scalar_v.to_biguint(), scalar_u.to_biguint());

vm/src/vm/errors/hint_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ pub enum HintError {
184184
#[error("Invalid value for {}. Got: {}. Expected: {}", (*.0).0, (*.0).1, (*.0).2)]
185185
InvalidValue(Box<(&'static str, Felt252, Felt252)>),
186186
#[error("Attempt to subtract with overflow: ids.m - 1")]
187-
NPairBitsMZero,
187+
NPairBitsTooLowM,
188188
}
189189

190190
#[cfg(test)]

0 commit comments

Comments
 (0)