November 2018
Intermediate to advanced
528 pages
13h 21m
English
At the final stage of the game, the last active player can claim their reward by calling claimReward(), which we define as the following:
function claimReward() external returns (bool) { require(remaining_players() == 1); active_players[Lindex].Paddress.transfer(address(this).balance); return true;}I’m sure the this keyword has caught your attention more than the rest of the code. So what is it?
Read now
Unlock full access