Skip to content

Instantly share code, notes, and snippets.

View LuisGSandoval's full-sized avatar
🎯
Focusing

LuisGSandoval LuisGSandoval

🎯
Focusing
View GitHub Profile
@LuisGSandoval
LuisGSandoval / ballot.sol
Created May 19, 2018 17:25
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=undefined&optimize=false&gist=
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
@LuisGSandoval
LuisGSandoval / ballot.sol
Created May 19, 2018 19:31
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=undefined&optimize=false&gist=
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {