Solidity Movie Fun: msg.sender

Misty Dawn Hall
Sep 5, 2018 · 3 min read

msg.sender = Tom Cruise getting called out in Eyes Wide Shut

There’s a weird scene in Eyes Wide Shut where all these (presumably) rich dudes meet up at a mansion, listen to monk chanting, and watch lewd acts.

Here’s the snippet that mimics this situation*:

mapping(uint => address) public entryPass;function participateInOrgy() public view {
entryPass[msg.sender]++;
}

The dudes in cloaks, who enter and exit the mansion, have previously identified themselves, and so are…

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade