Back to Home

zachcoin(TRU)

Token
0x89230fdc3b73...340e48ac0df1
FrontierContract #4,874Exact Bytecode MatchEdit this contract
Deployed December 9, 2015 (10 years ago)Block 667,150

December 2015 copy of the ethereum.org MyToken tutorial whose constructor was misnamed MyTrue, leaving it as a public function anyone could call.

Frontier EraVerified Source
Token Information
Token Name
zachcoin
Symbol
TRU
Decimals
0
Key Facts
Deployment Block
667,150
Deployment Date
Dec 9, 2015, 11:10 PM
Code Size
1.8 KB
Gas at Deploy
515,187
Transactions by Year
20154
20261

Description

Deployed on 10 December 2015, this is the ethereum.org "MyToken" tutorial token with one change that broke it: the initializer is named MyTrue instead of the contract name. Solidity of the time only treated a function as the constructor if its name matched the contract, so MyTrue became an ordinary public function. The deployment ran no initializer, leaving the name, symbol and decimals empty and no one holding a balance. Anyone could later call MyTrue(supply, name, symbol, decimals) to set the metadata and credit themselves the supply, and someone did: the token reads "zachcoin" with symbol "z" and 0 decimals.

The source was reconstructed from bytecode. The MyTrue name was recovered by brute-forcing its function selector (0x95f18951). Compiled with soljson v0.2.0 with the optimizer off, it reproduces both the runtime and the creation code byte for byte. The contract name is not recorded in the bytecode; MyToken is the tutorial's name.

Source Verified

SolidityExact bytecode match(1,882 bytes)
Compiler: v0.2.0+

Exact runtime (1864 B) and creation (1882 B) match, soljson v0.2.0+commit.4dc2445e, optimizer off. Constructor-named function MyTrue recovered from selector 0x95f18951. Sourcify full match.

Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: Token
Has ERC-20-like patterns

Bytecode Overview

Opcodes1,882
Unique Opcodes124
Jump Instructions79
Storage Operations35

External Links

Related contracts