aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-07-28 22:57:34 +0800
committerGitHub <noreply@github.com>2017-07-28 22:57:34 +0800
commit6dba8cf0f47a41bece23d11de9da82bb19a572e1 (patch)
treeeb01a78a788bb79538d67125c050d5b313dc71ad /test
parent2cdb5c9e83add0184e51b6cdc03d19f560f4a574 (diff)
downloaddexon-solidity-6dba8cf0f47a41bece23d11de9da82bb19a572e1.tar.gz
dexon-solidity-6dba8cf0f47a41bece23d11de9da82bb19a572e1.tar.zst
dexon-solidity-6dba8cf0f47a41bece23d11de9da82bb19a572e1.zip
Use keccak256 instead of sha3
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}