File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,6 @@ pub trait Transaction {
5151 rlp_bytes. insert ( 0usize , tt) ;
5252 }
5353
54- dbg ! ( hex:: encode( & rlp_bytes) ) ;
55-
5654 keccak256_hash ( & rlp_bytes)
5755 }
5856
@@ -1076,14 +1074,12 @@ mod test {
10761074 T : std:: fmt:: Debug ,
10771075 {
10781076 let mut file = File :: open ( & path) . unwrap_or_else ( |_| panic ! ( "Failed to open: {}" , path) ) ;
1079- dbg ! ( path) ;
10801077 let mut f_string = String :: new ( ) ;
10811078 file. read_to_string ( & mut f_string) . unwrap ( ) ;
10821079
10831080 let values: HashMap < String , serde_json:: Value > = serde_json:: from_str ( & f_string) . unwrap ( ) ;
10841081
10851082 let transaction: T = serde_json:: from_value ( values[ "input" ] . clone ( ) ) . unwrap ( ) ;
1086- dbg ! ( & values) ;
10871083 let expected_hash = match & values[ "output" ] [ "hash" ] {
10881084 serde_json:: Value :: String ( ref h) => h. clone ( ) . replace ( "0x" , "" ) ,
10891085 serde_json:: Value :: Null => panic ! ( "Test is missing `hash`" ) ,
You can’t perform that action at this time.
0 commit comments