tests for sload, sstore, sha3

This commit is contained in:
debris
2015-12-30 12:03:40 +01:00
parent e3f59d82ef
commit 2e7f0e29de
3 changed files with 78 additions and 41 deletions

View File

@@ -318,7 +318,7 @@ pub mod ffi {
let input = slice::from_raw_parts(begin, size as usize);
let outlen = out_hash.words.len() * 8;
let output = slice::from_raw_parts_mut(out_hash.words.as_mut_ptr() as *mut u8, outlen);
let mut sha3 = Keccak::new_sha3_256();
let mut sha3 = Keccak::new_keccak256();
sha3.update(input);
sha3.finalize(output);
}