Back to Home

Contract 0x32544d4c4b15...93a187a08a75

Token
0x32544d4c4b15...93a187a08a75
FrontierContract #1,567DecompiledEdit this contract
Deployed September 25, 2015 (10 years ago)Block 286,467

The 2015 tutorial token renamed to Coin, which turned its initialiser into a public function anyone can call to set their own balance.

Frontier Era

Historical Significance

A copy of the tutorial token broken by a one-word edit. Renaming the contract without renaming its initialiser was a common mistake in 2015, when the constructor was simply the function that shared the contract's name, and it turns a fixed supply token into one where any caller can mint to themselves. It is the kind of failure that led later Solidity versions to replace the naming rule with a constructor keyword.

Context

Ethereum's Frontier network went live on 30 July 2015. The tutorial token of that period predates ERC-20: balances are read through coinBalanceOf, transfers are sent with sendCoin, and the event announcing one is called CoinTransfer.

Key Facts
Deployment Block
286,467
Deployment Date
Sep 25, 2015, 04:10 AM
Code Size
616.0 B
Gas at Deploy
178,021
Transactions by Year
20251

Description

The token from the 2015 ethereum.org tutorial, in the form that predates ERC-20. It keeps one public mapping of balances, hands the whole supply to whoever creates it, and moves units with sendCoin(receiver, amount), which checks the sender's balance, returns false rather than reverting when it is short, and announces a successful move with a CoinTransfer event.

There is no approval, no allowance, no decimals, no name and no symbol. The supply is set once and cannot be added to.

The contract carries a defect that survives in the deployed code. Its initialiser is named token, but the contract is not, so it is not a constructor: it never ran at deployment, and it is a public function that any account can call at any time to write itself whatever balance it likes. Nothing about the supply is fixed and nothing restricts who sets it.

The default it writes when called with zero is 10,000 units.

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

Opcodes616
Unique Opcodes85
Jump Instructions19
Storage Operations8

External Links

Related contracts