- 1
- 0
- 约2.67万字
- 约 165页
- 2023-10-22 发布于山东
- 举报
116: // Checks that the sender of this callback was in fact oraclize 117: assert(msg.sender == oraclize_cbAddress()); 118: 119: numberWinner = (uint(sha3(_result))%10+1); 120: distributePrizes(); 121: } 122: 123: /// @notice Sends the corresponding Ether to each winner then deletes all the 124: /// players for the next game and resets the `totalBet` and `numberOfBets` 125: function distributePrizes() onEndGame { 126: uint winnerEtherAmount = totalBet / numberBetPlayers[numberWinner].length; // How much each winner gets 127: 128: // Loop through all the wi
原创力文档

文档评论(0)