Skip to content

Instantly share code, notes, and snippets.

@payers1
Last active September 4, 2017 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save payers1/3b78221f85d88c44a96e35330eeebdb0 to your computer and use it in GitHub Desktop.
Save payers1/3b78221f85d88c44a96e35330eeebdb0 to your computer and use it in GitHub Desktop.
function verifyMilkOutage() {
// Check to make sure the verifier is not also the notifier
if (msg.sender != milkOutageNotifier) {
milkOutageVerifier = msg.sender;
// Pay Alice
snTokenBalances[milkOutageNotifier] += 1;
// Pay Bob
snTokenBalances[milkOutageVerifier] += 1;
Notification("milk_outage_verified");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment