This commit is contained in:
Dmitry Vagner 2022-09-27 00:38:41 -07:00
parent ea31a803ca
commit fc761f7c20
2 changed files with 4 additions and 6 deletions

View File

@ -226,7 +226,7 @@ impl<'a> Interpreter<'a> {
0x19 => self.run_not(), // "NOT",
0x1a => self.run_byte(), // "BYTE",
0x1b => self.run_shl(), // "SHL",
0x1c => todo!(), // "SHR",
0x1c => self.run_shr(), // "SHR",
0x1d => todo!(), // "SAR",
0x20 => self.run_keccak256(), // "KECCAK256",
0x30 => todo!(), // "ADDRESS",

View File

@ -48,13 +48,11 @@ fn test_ripemd() -> Result<()> {
let final_stack: Vec<U256> = run_with_kernel(&kernel, initial_offset, initial_stack)?
.stack()
.to_vec();
let actual = final_stack[0];
let read_out: Vec<String> = final_stack.iter().map(|x| format!("{:x}", x)).rev().collect();
println!("{:x?}", read_out);
assert_eq!(actual, expected);
// let read_out: Vec<String> = final_stack.iter().map(|x| format!("{:x}", x)).rev().collect();
// println!("{:x?}", read_out);
}
Ok(())
}