A 115-byte contract with two functions, one() and two(), which write the constants 1 and 2 into the same storage slot.
Historical Significance
The smallest possible test of function dispatch. Two functions that differ only in a constant let a developer confirm that the four-byte selector routing worked and that each one reached its own body, which in 2015 was a real question rather than an assumption. It is a compiler test rather than a contract.
Context
Deployed 2015-09-22 by 0x5d1d36555752b215cfdb6a92995f5bf0e16f5ea6. One instance of this runtime is known. Source recovered by exact runtime bytecode match, verified on Sourcify and Etherscan.
Key Facts
Description
The whole contract is a single uint in storage slot 0 and two argument-free setters. one() at selector 0x901717d1 writes 1, two() at 0x5fdf05d7 writes 2. There is no getter, no access control and no event, so the only way to observe the result is to read storage directly.
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 OneTwo {
uint x;
function two() { x = 2; }
function one() { x = 1; }
}External Links
Related contracts
Contract 0x2712f4...a56c3f
Same deployerA contract that exists only to delete itself
0x2712f4...a56c3fSeptember 19, 2015Contract 0x072f9f...c5bac1
Same deployerA contract that exists only to delete itself
0x072f9f...c5bac1September 19, 2015Digix
Same eraThe earliest known attempt to deploy a smart contract on Ethereum mainnet (Aug 7 2015, thanateros.eth). Ran out of gas before code deposit; creation bytecode reconstructed exactly.
0x9a049f...a977a0August 7, 2015Test
Same eraThe earliest known Ethereum contract with executable runtime code. A single function go() that returns the string "eth", compiled with the first publicly available Solidity compiler (v0.1.1).
0x651629...8c21faAugust 7, 2015Greeter
Same eraAn early Ethereum contract that returns the string “Hello World!” when called.
0xfea8c4...8b08ebAugust 7, 2015Greeter
Same eraOne of six HelloWorld Greeter deployments by Linagee on Ethereum Frontier Day 1 - same source, same compiler, greeting: 'Hello World!'
0xd464e6...dc98f3August 7, 2015