The storage example rewired to send a wei and return a constant
Historical Significance
The contract the Solidity documentation opens with, and for most readers of the period the first one they compiled. It teaches the one thing the EVM does that a script does not: a number written here survives the transaction that wrote it, is readable by anyone, and costs real money to change.
Context
Deployed in September 2015 on the Frontier chain.
Key Facts
Description
It keeps the set and get names of the Solidity documentation's storage example and nothing else of its behaviour. The stored slot holds a hardcoded address rather than a number, set ignores its argument entirely and sends one wei to that address, and get returns the constant 255 without touching storage. The address it pays is another storage example deployed by the same account, so the pair was built to watch value move between two contracts.
Source Verified
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
// Submitted by EthereumHistory (ethereumhistory.com)
contract SimpleStorage {
address a = 0x9e0ae8ffd946d12d1d393c6f3bca0eecadc9428e;
function set(uint x) {
a.send(1);
}
function get() constant returns (uint) {
return 255;
}
}External Links
Related contracts
Target
Same deployerTarget contract.
0x9e0ae8...c9428eSeptember 17, 2015GetSet
Same deployerA minimal getter/setter proxy from the Oraclize team. set() forwards calls to a hardcoded target contract, get() returns constant 255.
0x77beac...7e96c2September 17, 2015Controller
Same deployerController contract.
0x3c9492...e332e5September 17, 2015GetSet
Same deployerA 57-byte test contract: set() stores the transaction's ether value into storage slot 0, and get() reads it back.
0xe595e8...423530September 17, 2015GetSet
Same deployerA 57-byte test contract: set() stores the transaction's ether value into storage slot 0, and get() reads it back.
0xd17e9b...03b76aSeptember 17, 2015Pool5x
Same deployerPool5x contract.
0x246b34...a8eebeSeptember 17, 2015