mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update compilation tests.
This commit is contained in:
committed by
Alex Beregszaszi
parent
17493e64ed
commit
e299a0031f
@@ -58,7 +58,7 @@ contract SignedMessageOracle is Oracle {
|
||||
// Result is not set yet and nonce and signer are valid
|
||||
require( !isSet
|
||||
&& _nonce > nonce
|
||||
&& signer == ecrecover(keccak256(descriptionHash, newSigner, _nonce), v, r, s));
|
||||
&& signer == ecrecover(keccak256(abi.encodePacked(descriptionHash, newSigner, _nonce)), v, r, s));
|
||||
nonce = _nonce;
|
||||
signer = newSigner;
|
||||
SignerReplacement(newSigner);
|
||||
@@ -74,7 +74,7 @@ contract SignedMessageOracle is Oracle {
|
||||
{
|
||||
// Result is not set yet and signer is valid
|
||||
require( !isSet
|
||||
&& signer == ecrecover(keccak256(descriptionHash, _outcome), v, r, s));
|
||||
&& signer == ecrecover(keccak256(abi.encodePacked(descriptionHash, _outcome)), v, r, s));
|
||||
isSet = true;
|
||||
outcome = _outcome;
|
||||
OutcomeAssignment(_outcome);
|
||||
|
||||
Reference in New Issue
Block a user