Update compilation tests.

This commit is contained in:
chriseth
2018-06-25 17:17:48 +02:00
committed by Alex Beregszaszi
parent 17493e64ed
commit e299a0031f
8 changed files with 21 additions and 21 deletions
@@ -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);