A greeter with four slots it never uses, and greet renamed myName
Context
Frontier and Homestead era deployment.
Key Facts
Description
The Frontier guide's greeter, written as a single contract rather than the guide's inherited pair, with the function that returns the greeting called myName. Two things separate it from the published source. The greeting sits in slot 0 and the owner address in slot 5, so four 32-byte state variables stand between them that no function in the contract ever reads or writes. And the dispatcher entry for the reader is 0xfae2dd4b rather than 0xcfae3217. Unused storage declarations leave no trace in the code except the slot numbers of everything after them, which is why they can be counted exactly but never named.
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 greeter {
string greeting;
uint slot1;
uint slot2;
uint slot3;
uint slot4;
address owner;
function greeter(string _greeting) {
owner = msg.sender;
greeting = _greeting;
}
function myName() returns (string) {
return greeting;
}
function kill() { if (msg.sender == owner) suicide(owner); }
}External Links
Related contracts
Contract 0x852c72...96543c
Same deployerThe Greeter from solidity-baby-steps: a greeting set at creation that the deployer can also change afterwards, plus a block number reader.
0x852c72...96543cNovember 2, 2015Greeter
Same eraA HelloWorld greeter deployed at block 51,909 on 8 August 2015, one of a run of contracts from the same account that week.
0x412fda...7267edAugust 8, 2015Greeter
Same eraA Greeter with the message 'Ethereum will change the world smarter' - deployed Aug 8, 2015 by a developer connected to the Tokyo Smart Contract meetup.
0xda0c1c...7a68ebAugust 8, 2015MessageStore
Same eraA 6-line contract storing a single public string, deployed Day 9 of Ethereum by a prolific early experimenter who shipped 18 contracts in one week.
0xd2eccd...ff3d6bAugust 8, 2015Greeter
Same eraThe go-ethereum Contract Tutorial greeter, deployed with the greeting: Hello World!
0x506f4b...466983August 8, 2015Contract 0xd4eae4...a2c77a
Same eraThe ethereum.org crowdsale tutorial, deployed on the ninth day of the public chain, with the funding goal, deadline and price fixed at construction.
0xd4eae4...a2c77aAugust 8, 2015