Skip to content

Commit b6bb170

Browse files
binierakoptelov
authored andcommitted
test(v2/hashing): fix compilation error
1 parent 34be0ef commit b6bb170

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mina-p2p-messages/src/v2/hashing.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -758,18 +758,15 @@ mod verification_key;
758758

759759
#[cfg(test)]
760760
mod hash_tests {
761-
use crate::{
762-
hash::MinaHash,
763-
v2::{DataHashLibStateHashStableV1, MinaStateProtocolStateValueStableV2, StateHash},
764-
};
761+
use crate::v2::MinaStateProtocolStateValueStableV2;
765762

766763
#[test]
767764
fn state_hash() {
768765
const HASH: &str = "3NKpXp2SXWGC3XHnAJYjGtNcbq8tzossqj6kK4eGr6mSyJoFmpxR";
769766
const JSON: &str = include_str!("../../tests/files/v2/state/617-3NKpXp2SXWGC3XHnAJYjGtNcbq8tzossqj6kK4eGr6mSyJoFmpxR.json");
770767

771768
let state: MinaStateProtocolStateValueStableV2 = serde_json::from_str(JSON).unwrap();
772-
let hash = StateHash::from(DataHashLibStateHashStableV1(state.hash().into()));
769+
let hash = state.hash();
773770
let expected_hash = serde_json::from_value(serde_json::json!(HASH)).unwrap();
774771
assert_eq!(hash, expected_hash)
775772
}

0 commit comments

Comments
 (0)