Skip to content
Verified contractPartial

Outcome

Address0xe37673a8e0aaa536828f0d5b0ddba12fece1115c
Balance

0 ETH

 

Transactions

64

 

Compiler

solc 0.1.3

 

Same code

Only this contract

 

Details

Compiler
solc 0.1.3+commit.028f561d
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
76,159
Creation transaction
0xca0a6febe1…47d023056c

Outcome.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Outcome {
    address creator;
    mapping (uint => uint16) outcomes;

    function Outcome() {
        creator = msg.sender;
    }

    function changeCreator(address newCreator) {
        if (creator == msg.sender) creator = newCreator;
    }

    function deleteContract() {
        if (creator == msg.sender) suicide(msg.sender);
    }

    function setWinningOutcome(uint id, uint16 outcome) {
        if (msg.sender == creator) outcomes[id] = outcome;
    }

    function getWinningOutcome(uint id) returns (uint16) {
        return outcomes[id];
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.