Back to Home

Ballot

Utility
0x56ce77217867...535147b44745
FrontierContract #306Exact Bytecode MatchEdit this contract
Deployed August 18, 2015 (11 years ago)Block 105,249

Delegated voting with a proposal count fixed at deployment

Frontier EraVerified Source

Context

Deployed in August 2015, three weeks after Frontier launched, and compiled with solc v0.1.1.

Key Facts
Deployment Block
105,249
Deployment Date
Aug 18, 2015, 07:50 AM
Code Size
1.8 KB
Gas at Deploy
498,914

Description

The struct form of the Solidity Ballot example. Each address maps to a Voter record holding a weight, a voted flag, the chosen proposal and a delegate, and the proposals array is sized by the constructor argument. The deployer becomes chairperson, is given a weight of one, and is the only account that may call giveRightToVote. A voter either votes directly or delegates, and delegate walks the delegation chain to its end before moving the weight. winningProposal scans the tallies for the leader, but its loop advances the counter twice per iteration, once in the for header and once in the body, so it inspects only every second proposal.

Source Verified

Exact bytecode match(1,829 bytes)
Compiler: v0.1.1+
Heuristic Analysis

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

Detected Type: Utility

Bytecode Overview

Opcodes1,829
Unique Opcodes80
Jump Instructions61
Storage Operations46

External Links

Related contracts