Skip to content

Instantly share code, notes, and snippets.

View travs's full-sized avatar
🐄

Travis Jacobs travs

🐄
View GitHub Profile
@travs
travs / ballot.sol
Last active June 12, 2017 16:36 — forked from anonymous/ballot.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.11+commit.68ef5810.js&optimize=undefined&gist=
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
}
Voter me = Voter({
weight: 2,