Skip to content

Commit

Permalink
chore: update misleading variable name (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Feb 17, 2023
1 parent bbb70bd commit ddb7730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/noirc_abi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ impl Abi {
.clone();

if !value.matches_abi(&expected_type) {
let missing_param = self
let param = self
.parameters
.iter()
.find(|param| param.name == param_name)
.unwrap()
.clone();
return Err(AbiError::TypeMismatch { param: missing_param, value });
return Err(AbiError::TypeMismatch { param, value });
}

Self::encode_value(value, &param_name).map(|v| (param_name, v))
Expand Down

0 comments on commit ddb7730

Please sign in to comment.