Skip to content

Commit

Permalink
Merge pull request #48 from gnosis/tweak-error-msg
Browse files Browse the repository at this point in the history
Tweak error message for conditions
  • Loading branch information
cag committed Jul 18, 2019
2 parents 6348821 + c15f3d7 commit 01bbdfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/PredictionMarketSystem.sol
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ contract ConditionalTokens is OracleConsumer, ERC1155 {
uint outcomeSlotCount = result.length / 32;
require(outcomeSlotCount <= 256, "too many outcome slots");
bytes32 conditionId = keccak256(abi.encodePacked(msg.sender, questionId, outcomeSlotCount));
require(payoutNumerators[conditionId].length == outcomeSlotCount, "number of outcomes mismatch");
require(payoutNumerators[conditionId].length == outcomeSlotCount, "condition not prepared or found");
require(payoutDenominator[conditionId] == 0, "payout denominator already set");
uint den = 0;
for (uint i = 0; i < outcomeSlotCount; i++) {
Expand Down

0 comments on commit 01bbdfb

Please sign in to comment.