chore: simplify ToFields trait (#154)
This commit is contained in:
parent
b1689c5b37
commit
2a2628ccbf
6 changed files with 66 additions and 100 deletions
|
|
@ -364,7 +364,7 @@ impl MockMainPod {
|
|||
pub fn hash_statements(statements: &[Statement], _params: &Params) -> middleware::Hash {
|
||||
let field_elems = statements
|
||||
.iter()
|
||||
.flat_map(|statement| statement.clone().to_fields(_params).0)
|
||||
.flat_map(|statement| statement.clone().to_fields(_params))
|
||||
.collect::<Vec<_>>();
|
||||
Hash(PoseidonHash::hash_no_pad(&field_elems).elements)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue