Skip to content

Instantly share code, notes, and snippets.

@travs
Forked from anonymous/ballot.sol
Last active June 12, 2017 16:36
Show Gist options
  • Save travs/eb6a5e80b694e38ae067a5e3d0cc2b0a to your computer and use it in GitHub Desktop.
Save travs/eb6a5e80b694e38ae067a5e3d0cc2b0a to your computer and use it in GitHub Desktop.
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,
voted: false,
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment