Skip to content

Commit

Permalink
Some format values are written as
Browse files Browse the repository at this point in the history
"Scalar(0x..)"

The hotfix was to change the stripping rules, but this is probably
an incorrect implementation of certain traits for one of the curves.
  • Loading branch information
iquerejeta committed Oct 9, 2024
1 parent e2d1fa8 commit dded7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion halo2_frontend/src/dev/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub(super) fn format_value<F: Field>(v: F) -> String {
// Format value as hex.
let s = format!("{v:?}");
// Remove leading zeroes.
let s = s.strip_prefix("0x").unwrap();
let s = s.splitn(2, "0x").nth(1).unwrap().splitn(2, ")").nth(0).unwrap();
let s = s.trim_start_matches('0');
format!("0x{s}")
}
Expand Down

0 comments on commit dded7ae

Please sign in to comment.