Skip to content

Commit

Permalink
refactor: hasher update
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRampoldi committed Sep 3, 2024
1 parent 9db71b0 commit f259a96
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions batcher/aligned-sdk/src/core/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,9 @@ impl Eip712 for NoncedVerificationData {
hasher.update(self.nonce);
let nonce_hash = hasher.finalize_reset();

hasher.update(
[
nonced_verification_data_type_hash.as_slice(),
verification_data_hash.as_slice(),
nonce_hash.as_slice(),
]
.concat(),
);
hasher.update(nonced_verification_data_type_hash.as_slice());
hasher.update(verification_data_hash.as_slice());
hasher.update(nonce_hash.as_slice());

Ok(hasher.finalize().into())
}
Expand Down

0 comments on commit f259a96

Please sign in to comment.