Back to Home

Ballot

Utility
0x3cf26c54635b...d38e20b6a8e1
FrontierContract #305Exact Bytecode MatchEdit this contract
Deployed August 18, 2015 (11 years ago)Block 105,174

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,174
Deployment Date
Aug 18, 2015, 07:32 AM
Code Size
1.1 KB
Gas at Deploy
337,438

Description

The struct form of the Solidity Ballot example, compiled with the optimiser. 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,113 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,113
Unique Opcodes94
Jump Instructions55
Storage Operations41

External Links

Related contracts