mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use keccak256 instead of sha3
This commit is contained in:
parent
2cdb5c9e83
commit
6dba8cf0f4
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user