捕获ether靶场的题解Lotteries
发布时间
阅读量:
阅读量
题目预览
- 猜测目标数值
-
- 分析
- 攻击
-
确定隐藏数值
-
- 分析
- 攻击
-
推测随机数值
-
- 分析
- 攻击
-
预测新数值
-
- 分析
- 攻击
-
预测未来数值
-
- 分析
- 攻击
-
预测区块哈希值
-
- 分析
- 攻击
-
Guess the number
分析
pragma solidity ^0.4.21;
contract GuessTheNumberChallenge {
uint8 answer = 42;
function GuessTheNumberChallenge() public payable {
require(msg.value == 0.001 ether);
}
function isComplete() public view returns (bool) {
return address(this).balance == 0;
}
function guess(uint8 n) public payable {
r
全部评论 (0)
还没有任何评论哟~
