Back to Home

EtherVote

Part of The Avsa Collection
0x8a57d2708d1f...1cd2a0a1cda4
Spurious DragonSource VerifiedEdit this contract
Deployed July 10, 2017 (9 years ago)Block 4,004,456

The 2016 EtherVote contract redeployed by Alex Van de Sande on 10 July 2017, recompiled on a 0.4 compiler.

Spurious Dragon EraVerified Source

Historical Significance

The code compiles exactly from the source published for the 2016 deployment on v0.4.10+commit.f0d539ae with the optimizer off. Only the 43 byte metadata trailer differs, because its swarm hash is a digest of the source text and file name and the EthereumHistory attribution line changes both.

Context

Deployed on 10 July 2017 and used once, four minutes later. A year earlier the same account had put three versions of this contract on chain in four days during the argument over the response to the attack on The DAO.

Key Facts
Deployment Block
4,004,456
Deployment Date
Jul 10, 2017, 08:02 PM
Code Size
267.0 B
Transactions by Year
20171

Description

The same one function voting contract as 0x8b803d9f2bd4aeaa2a7c5265fb5684fe3e68c879, deployed again a year later from the same account and from the same source text. vote(bytes32 proposalHash, bool pro) emits LogVote with the proposal hash indexed, the yes or no choice, and the caller, and does nothing else. What changed is the compiler: built on a 0.4 series release with the optimizer off, so the deployed code carries the CBOR metadata trailer that 0.3 compilers did not emit, and the non payable check the 0.4 compilers insert on their own now stands where the handwritten ether guard stood in the 2016 versions.

Source Verified

SolidityNear-exact bytecode match
Compiler: v0.4.11

Code section matches exactly (267 bytes). CBOR hash differs — original source file encoding not recovered. Source from ethereum/stake-voice GitHub repo (July 2017). This deployment omits the fallback function() { throw; } present in the upstream repo.

Bytecode Overview

Opcodes267
Unique Opcodes97
Jump Instructions9
Storage Operations1

External Links

Related contracts