Solidity Movie Fun: msg.sender
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…
