Back to Home

mortal

Utility
0x2e1e37120d76...45c02b6d34f1
Tangerine WhistleSource VerifiedEdit this contract
Deployed November 18, 2016 (9 years ago)Block 2,651,113

The mortal base of the go-ethereum Contract Tutorial deployed on its own: it records its creator and lets only that account destroy it.

Tangerine Whistle EraVerified Source

Historical Significance

The ownership plus kill pair this contract implements is the shape early Solidity contracts inherited almost universally, and the tutorial that taught it introduced it on its own before using it. Deployed by itself it records a reader working through the page one contract at a time.

Context

Ethereum's Frontier network went live on 30 July 2015. The Contract Tutorial on the go-ethereum wiki, which the Frontier Guide included by reference, was the standard introduction of that period: it opens with a multiply function, then a mortal base, then the greeter, then a token. Contracts were compiled and deployed from the geth console.

Key Facts
Deployment Block
2,651,113
Deployment Date
Nov 18, 2016, 06:28 PM
Code Size
221.0 B

Description

The mortal base contract from the Contract Tutorial on the go-ethereum wiki, deployed alone rather than as the parent of a greeter. Its constructor stores the account that created it, and kill() self-destructs the contract and sends any balance to that account. Nobody else can call it to any effect and there is nothing else to call.

A deployment like this is the deploy-and-destroy cycle being tested, not an application: the tutorial introduces mortal first and then builds the greeter on top of it.

Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes221
Unique Opcodes34
Jump Instructions9
Storage Operations3

External Links

Related contracts