Skip to content

Instantly share code, notes, and snippets.

@payers1
Created September 4, 2017 16:06
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/b682d03ffed790ff5c92e797bd8bc299 to your computer and use it in GitHub Desktop.
Save payers1/b682d03ffed790ff5c92e797bd8bc299 to your computer and use it in GitHub Desktop.
function verifyGotMilk(uint _milkBarcode) {
milkVerifier = msg.sender;
if (_milkBarcode == milkBarcode && milkVerifier != milkGetter) {
outOfMilk = false;
// Pay Carl
snTokenBalances[milkGetter] += (2 + 5);
// Pay Dana
snTokenBalances[milkVerifier] += 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment