File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -758,18 +758,15 @@ mod verification_key;
758
758
759
759
#[ cfg( test) ]
760
760
mod hash_tests {
761
- use crate :: {
762
- hash:: MinaHash ,
763
- v2:: { DataHashLibStateHashStableV1 , MinaStateProtocolStateValueStableV2 , StateHash } ,
764
- } ;
761
+ use crate :: v2:: MinaStateProtocolStateValueStableV2 ;
765
762
766
763
#[ test]
767
764
fn state_hash ( ) {
768
765
const HASH : & str = "3NKpXp2SXWGC3XHnAJYjGtNcbq8tzossqj6kK4eGr6mSyJoFmpxR" ;
769
766
const JSON : & str = include_str ! ( "../../tests/files/v2/state/617-3NKpXp2SXWGC3XHnAJYjGtNcbq8tzossqj6kK4eGr6mSyJoFmpxR.json" ) ;
770
767
771
768
let state: MinaStateProtocolStateValueStableV2 = serde_json:: from_str ( JSON ) . unwrap ( ) ;
772
- let hash = StateHash :: from ( DataHashLibStateHashStableV1 ( state. hash ( ) . into ( ) ) ) ;
769
+ let hash = state. hash ( ) ;
773
770
let expected_hash = serde_json:: from_value ( serde_json:: json!( HASH ) ) . unwrap ( ) ;
774
771
assert_eq ! ( hash, expected_hash)
775
772
}
You can’t perform that action at this time.
0 commit comments