From 6dba8cf0f47a41bece23d11de9da82bb19a572e1 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 28 Jul 2017 16:57:34 +0200 Subject: Use keccak256 instead of sha3 --- test/libsolidity/SolidityEndToEndTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp index 057ec94b..db7f59ee 100644 --- a/test/libsolidity/SolidityEndToEndTest.cpp +++ b/test/libsolidity/SolidityEndToEndTest.cpp @@ -8268,7 +8268,7 @@ BOOST_AUTO_TEST_CASE(failing_ecrecover_invalid_input_proper) function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s, uint blockExpired, bytes32 salt) returns (address) { - require(hash == sha3(blockExpired, salt)); + require(hash == keccak256(blockExpired, salt)); return ecrecover(hash, v, r, s); } } -- cgit v1.2.3