# Manually setting game results Motivation: If the computer vision model breaks down, we need to manually resolve the results of a game. ## How this works ### Getting the question id Go to AWS.com Go to dynamodb Go to the question table Within the question table, get the `question_id` field https://us-east-1.console.aws.amazon.com/dynamodbv2/home?region=us-east-1#item-explorer?table=question ### Setting up the on-chain call Configure your metamask with the appropriate private key(ask Albert for the private key) Make sure you are on the correct network in metamask https://edgeless-testnet.hub.caldera.xyz/ Go to https://eth95.dev/ Paste the contract address of the conditional tokens into the address field of eth95 `0x520c5f3C77084d770eb3353CfB7b807EB69752a4` Go to Add contract, then paste the following ABI ``` [{ "constant": false, "inputs": [ { "name": "questionId", "type": "bytes32" }, { "name": "payouts", "type": "uint256[]" } ], "name": "reportPayouts", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }] ``` Select the `reportPayouts` function and paste the `question_id` from the previous step. For the payouts, set the index in the array to 1 for the correct outcome, and everything else to zero - For example, if the question is `Will I win the chess match?` and the outcomes are `[yes, no]` and the streamer wins the chess match, the `payouts` array should be `[1,0]` - Similarly, if the question is `Will I get 5.5 kills?` and the outcomes are `[yes, no]` and the streamer gets 4 kills, the payouts array should be `[0,1]` Click the submit button