Quiz
Question 1
Which of the following vulnerabilities are specific to the Ethereum blockchain?
Question 2
Which of the following is more of a design issue than an implementation issue?
NOT - Timestamp
NOT - Uncheked
Question 3
This code sample includes which of the following vulnerabilities?
function initContract() public {
owner = msg.sender
}
Question 4
This code sample includes which of the following vulnerabilities?
contract King is Ownable {
address public king;
uint public prize;
function King() public payable {
king = msg.sender;
prize = msg.value;
}
function() external payable {
require(msg.value >= value || msg.value == owner);
king.transfer(msg.value);
king = msg.sender;
prize = msg.value;
}
}
Last updated