Back to Home

PiggyBank

0x0002866cec46...3903d995c5ac
Exact Bytecode MatchEdit this contract
Deployed March 1, 2017 (9 years ago)Block 3,272,800

Savings contract that logs deposits with a fixed account id and can be emptied or destroyed.

Verified Source

Historical Significance

The fixed id of 88 is compiled into the bytecode as a literal, which means every deployment of this design reported the same account number. Written when selfdestruct was still spelled suicide, and when a failed ownership check commonly did nothing at all instead of reverting, so a stranger's call would appear to succeed.

Key Facts
Deployment Block
3,272,800
Deployment Date
Mar 1, 2017, 02:45 PM
Code Size
237.0 B

Description

A small savings contract. Its payable fallback accepts ether and, when the amount is above zero, emits a Deposit event carrying the sender, a fixed account id of 88, and the amount. The creator can call collect() to send the whole balance to themselves, or kill() to destroy the contract and release its balance. Both are silently ignored when called by anyone else rather than reverting. The bytecode carries no metadata trailer, so this is an exact match rather than a partial one.

Source Verified

SolidityExact bytecode match(237 bytes)
Compiler: v0.4.3+

Bytecode Overview

Opcodes237
Unique Opcodes77
Jump Instructions15
Storage Operations6

External Links

Related contracts