Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Update Lookup failure type
Browse files Browse the repository at this point in the history
  • Loading branch information
ed255 committed May 3, 2023
1 parent 4d1544d commit 5000d53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gadgets/src/evm_word.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ mod tests {
assert_eq!(
prover.verify(),
Err(vec![VerifyFailure::Lookup {
name: "Encoded word / Pub inputs",
name: "Encoded word / Pub inputs".to_string(),
lookup_index: 32,
location: FailureLocation::InRegion {
region: halo2_proofs::dev::metadata::Region::from((
Expand Down
12 changes: 6 additions & 6 deletions gadgets/src/monotone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,15 @@ mod test {
vec![1, 2, 2, 4, 4],
Err(vec![
Lookup {
name: "Range check",
name: "Range check".to_string(),
lookup_index: 0,
location: FailureLocation::InRegion {
region: halo2_proofs::dev::metadata::Region::from((1, "witness")),
offset: 2,
},
},
Lookup {
name: "Range check",
name: "Range check".to_string(),
lookup_index: 0,
location: FailureLocation::InRegion {
region: halo2_proofs::dev::metadata::Region::from((1, "witness")),
Expand All @@ -251,7 +251,7 @@ mod test {
try_test_circuit(
vec![1, 2, 3, 4, 105],
Err(vec![Lookup {
name: "Range check",
name: "Range check".to_string(),
lookup_index: 0,
location: FailureLocation::InRegion {
region: halo2_proofs::dev::metadata::Region::from((1, "witness")),
Expand All @@ -263,7 +263,7 @@ mod test {
try_test_circuit(
vec![1, 2, 3, 103, 4],
Err(vec![Lookup {
name: "Range check",
name: "Range check".to_string(),
lookup_index: 0,
location: FailureLocation::InRegion {
region: halo2_proofs::dev::metadata::Region::from((1, "witness")),
Expand All @@ -286,7 +286,7 @@ mod test {
try_test_circuit(
vec![1, 2, 3, 4, 105],
Err(vec![Lookup {
name: "Range check",
name: "Range check".to_string(),
lookup_index: 0,
location: FailureLocation::InRegion {
region: halo2_proofs::dev::metadata::Region::from((1, "witness")),
Expand All @@ -298,7 +298,7 @@ mod test {
try_test_circuit(
vec![1, 2, 3, 103, 4],
Err(vec![Lookup {
name: "Range check",
name: "Range check".to_string(),
lookup_index: 0,
location: FailureLocation::InRegion {
region: halo2_proofs::dev::metadata::Region::from((1, "witness")),
Expand Down

0 comments on commit 5000d53

Please sign in to comment.