diff options
author | chriseth <chris@ethereum.org> | 2017-07-28 22:57:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-28 22:57:34 +0800 |
commit | 6dba8cf0f47a41bece23d11de9da82bb19a572e1 (patch) | |
tree | eb01a78a788bb79538d67125c050d5b313dc71ad | |
parent | 2cdb5c9e83add0184e51b6cdc03d19f560f4a574 (diff) | |
download | dexon-solidity-6dba8cf0f47a41bece23d11de9da82bb19a572e1.tar.gz dexon-solidity-6dba8cf0f47a41bece23d11de9da82bb19a572e1.tar.zst dexon-solidity-6dba8cf0f47a41bece23d11de9da82bb19a572e1.zip |
Use keccak256 instead of sha3
-rw-r--r-- | test/libsolidity/SolidityEndToEndTest.cpp | 2 |
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); } } |