Back to Home

Contract 0x852c72b82d6e...d3019a96543c

Utility
0x852c72b82d6e...d3019a96543c
FrontierContract #3,203DecompiledEdit this contract
Deployed November 2, 2015 (10 years ago)Block 477,651

The Greeter from solidity-baby-steps: a greeting set at creation that the deployer can also change afterwards, plus a block number reader.

Frontier Era

Historical Significance

The greeter as a lesson rather than a demonstration: the same idea with a setter, a global-variable reader and comments explaining what a constructor is. It shows the teaching material that grew up around Solidity once the official tutorial was no longer the only one.

Context

Deployed in late 2015, when Solidity had no package manager, no linter and no framework, and learning it meant reading someone's annotated example contracts on GitHub and deploying them to mainnet to see what happened.

Key Facts
Deployment Block
477,651
Deployment Date
Nov 2, 2015, 08:28 AM
Code Size
1.2 KB
Gas at Deploy
310,424
Transactions by Year
20153
20163

Description

A teaching contract from the solidity-baby-steps examples, and a fuller version of the greeter than the one in the go-ethereum tutorial. It stores its creator and a greeting given at deployment, returns the greeting from greet(), and adds two things the tutorial version does not have: setGreeting(), which rewrites the message and is callable by anyone, and getBlockNumber(), included purely to show a global variable being returned.

kill() self-destructs the contract and returns any balance, and only the creator can call it. The greeting is the only mutable state and nothing guards it.

Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes1,239
Unique Opcodes103
Jump Instructions56
Storage Operations20

External Links

Related contracts