Skip to content

Instantly share code, notes, and snippets.

@mhe
mhe / ballot.sol
Created August 14, 2019 13:37
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {

Keybase proof

I hereby claim:

  • I am mhe on github.
  • I am mhe (https://keybase.io/mhe) on keybase.
  • I have a public key ASCl6FAa_lm_9TFV4tgnrHC5UlnPtHQ5tvtGTasXyNH1iAo

To claim this, I am signing this object: