Skip to content
Verified contractPartial

Forum

Address0x2c33bdf4c0fbaf4471aba943fc9d97b35a04e8ca
Balance

0 ETH

 

Transactions

3

 

Compiler

solc 0.1.4

 

Same code

Only this contract

 

Details

Compiler
solc 0.1.4+commit.5f6c3cdf
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
687,552
Creation transaction
0xaa70a6c1a3…57ea03b408

Forum.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Forum {
    struct Message {
        address author;
        string body;
        string title;
    }

    struct Topic {
        uint numMessages;
        mapping (uint => Message) messages;
        address author;
        string title;
        string body;
    }

    address owner;
    uint public numTopics;
    mapping (uint => Topic) public topics;

    function Forum() {
        owner = msg.sender;
    }

    function newTopic(string title, string body) returns (uint topicId) {
        topicId = numTopics++;
        Topic t = topics[topicId];
        t.title = title;
        t.body = body;
        t.author = msg.sender;
    }

    function newMessage(string title, string body, uint topicId) returns (uint messageId) {
        messageId = topics[topicId].numMessages++;
        Topic t = topics[topicId];
        Message m = t.messages[messageId];
        m.title = title;
        m.body = body;
        m.author = msg.sender;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.