Ismail131's picture
Upload folder using huggingface_hub
80018f2 verified
raw
history blame contribute delete
700 Bytes
import os
# Load Easy task metadata
# We use absolute path to find the contract code correctly
DIR = os.path.dirname(os.path.abspath(__file__))
CONTRACT_PATH = os.path.join(DIR, "..", "contracts", "easy_reentrancy.sol")
with open(CONTRACT_PATH, "r") as f:
CONTRACT_CODE = f.read()
EASY_TASK = {
"name": "VulnerableBank",
"code": CONTRACT_CODE,
"description": "Find the security vulnerability in this contract.",
"ground_truth": {
"vulnerabilities": [
{
"type": "reentrancy",
"line": 14,
"severity": "critical",
"description": "State change after external call"
}
]
}
}