Skip to content
Verified contractPartial

Forum

Address0x45e436635bb453e9e7d44a313cb74363fd148fe2
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.1.7

 

Same code

9 more contracts

 

Details

Compiler
solc 0.1.7+commit.b4e666cc
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
631,476
Creation transaction
0x88a00f9d23…92b2c5bc38

Forum.sol

// Submitted by EthereumHistory (ethereumhistory.com)
contract Forum {
    address owner;
    uint fee;

    event Comment(address indexed poster, bytes32 indexed id, bytes text);

    modifier onlyOwner() {
        if (msg.sender != owner) throw;
        _
    }

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

    function setOwner(address _owner) onlyOwner {
        owner = _owner;
    }

    function addComment(bytes32 id, bytes text) {
        Comment(msg.sender, id, text);
    }

    function setFee(uint _fee) onlyOwner {
        fee = _fee;
    }

    function getOwner() constant returns (address) {
        return owner;
    }

    function getFee() constant returns (uint) {
        return fee;
    }
}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.