Skip to content
Verified contractPartial

Board

Address0x585d945e5a8df58ef45f88bd253d95ebeb38608f
Balance

0 ETH

 

Transactions

4

 

Compiler

solc 0.1.3

 

Same code

Only this contract

 

Details

Compiler
solc 0.1.3+commit.028f561d
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
273,347
Creation transaction
0x812fe5144c…6256d9ca3b

Board.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Board {
    string[] posts;
    uint count;

    function latest() returns (string) {
        return posts[count - 1];
    }

    function post(string message) {
        posts.length = count + 1;
        posts[count] = message;
        count++;
    }

    function askNudes() {
        posts.length = count + 1;
        posts[count] = "Send me nudes";
        count++;
    }
    function postAt(uint index) returns (string) {
        if (index < count) return posts[index];
        return "No post found at index";
    }

}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.