Skip to content

Commit ca97175

Browse files
committed
Use ethers_core::utils::keccak256 in milestone_3 test
1 parent 1fb111e commit ca97175

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/stylus_tests/milestone_3.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#![warn(clippy::pedantic)]
88

99
use crate::{call, deploy, send, MUTEX};
10+
use ethers_core::utils::keccak256;
1011
use std::path::PathBuf;
11-
use tiny_keccak::{Hasher, Keccak};
1212

1313
#[test]
1414
fn milestone_3() {
@@ -85,11 +85,3 @@ fn get<'a>(stdout: &'a str, label: &str) -> Option<&'a str> {
8585
let prefix = format!("{label} = ");
8686
stdout.lines().find_map(|line| line.strip_prefix(&prefix))
8787
}
88-
89-
fn keccak256(input: &[u8]) -> [u8; 32] {
90-
let mut output = [0u8; 32];
91-
let mut hasher = Keccak::v256();
92-
hasher.update(&input);
93-
hasher.finalize(&mut output);
94-
output
95-
}

0 commit comments

Comments
 (0)