Skip to content

Instantly share code, notes, and snippets.

@payers1 payers1/verify-got-milk.sol Secret
Created Sep 4, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.