Back to Home

creatorBalanceChecker

Utility
0x5433fecc1524...aa6797fe7efd
FrontierSource VerifiedEdit this contract
Deployed March 11, 2016 (10 years ago)Block 1,134,143

A teaching contract that records its creator's ether balance at the moment of deployment and keeps it, so the snapshot can be compared with the live value.

Frontier EraVerified Source

Historical Significance

A contract written to make one property of the EVM visible: a constructor runs once, and anything it copies into storage is frozen at that block while the world it was copied from moves on. Confusing a stored snapshot with a live reading is the root of a whole class of later bugs, from stale prices to balances cached across an external call, and this is that distinction isolated into a contract that does nothing else.

Context

Deployed in March 2016 from a collection of annotated example contracts, in the period when learning Solidity meant reading somebody's commented walkthrough on GitHub and deploying the examples to mainnet to watch them run.

Key Facts
Deployment Block
1,134,143
Deployment Date
Mar 11, 2016, 04:17 PM
Code Size
481.0 B

Description

A small demonstration contract. Its constructor stores the account that deployed it and reads that account's ether balance at that instant into storage. getCreatorBalance() returns the stored snapshot, and the contract also exposes its own address through getContractAddress().

The point is the difference between the two readings: the stored number is what the creator held when the contract was made and never changes, while reading creator.balance now would give whatever they hold today. The source says so in a comment.

It holds no funds, has no owner beyond the recorded address, and nothing can be written to it after deployment.

Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes481
Unique Opcodes59
Jump Instructions19
Storage Operations7

External Links

Related contracts