Back to Home

Owned

Utility
0x2137105639c4...217cfd798d50
FrontierContract #1,873Source VerifiedEdit this contract
Deployed October 11, 2015 (10 years ago)Block 365,803

An ownership holder with no access control: it stores one address and any account at all can overwrite it.

Frontier EraVerified Source

Historical Significance

An ownership base contract written without the check that makes ownership mean anything. The pattern this one is missing, a guard comparing msg.sender against the stored owner, became the modifier that nearly every later contract inherits.

Context

Ethereum's Frontier network went live on 30 July 2015. Almost nothing was deployed in its first months except tutorial code and small experiments, written in a Solidity only a few months old and with no test network in common use, so the experiments happened on mainnet.

Key Facts
Deployment Block
365,803
Deployment Date
Oct 11, 2015, 05:20 AM
Code Size
251.0 B
Gas at Deploy
82,583

Description

A contract that stores a single address and exposes two functions: setOwnerAddress(newOwner) writes it and get() reads it back.

setOwnerAddress carries no check on who is calling, so the owner slot is not owned by anybody: any account can take it at any time by sending one transaction. Nothing else in the contract depends on the value, so nothing is at risk here, but the same two functions inherited by a contract that holds funds would give them away.

The same account published these two functions again four thousand blocks later with the declarations in the opposite order.

Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes251
Unique Opcodes51
Jump Instructions11
Storage Operations4

External Links

Related contracts