Solidity Tutor

Security Challenge
Init Error
Code Editor
simple
Advanced Solidity Editor
1 lines
Ln 1, Col 1
Quick Insert:
#
1
/* * @source: https://github.com/sigp/solidity-security-blog * @author: - * @vulnerable_at_lines: 17 */
pragma solidity ^0.4.22;
contract FindThisHash { bytes32 constant public hash = 0xb5b5b97fafd9855eec9b41f74dfb6c38f5951141f9a3ecd7f44d5479b630ee0a;
constructor() public payable {} // load with ether
function solve(string solution) public { // If you can find the pre image of the hash, receive 1000 ether // <yes> <report> FRONT_RUNNING require(hash == sha3(solution)); msg.sender.transfer(1000 ether); }}
Solidity ^0.8.0UTF-8Spaces: 4
Ln 1, Col 1
AI Tutor
Security Challenge
Simulation