pragma solidity ^0.4.18; contract Math { function Math(){ reward = 100; } function SubmitSolution(solution) public constant returns (uint) { if isCorrect(solution){ // Việc kiểm tra kết quả này có thể bị Hacker can thiệp trước đó Send(reward) } } function Update(newreward) public constant returns (uint) { reward = newreward; } }
0.4.18