Spaces:
Runtime error
Runtime error
Download test_regex.js from TALP-Project/multi-agent-smart-contracts: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/TALP-Project/multi-agent-smart-contracts/resolve/main/test_regex.js
- Command line
-
hf download hf://spaces/TALP-Project/multi-agent-smart-contracts/test_regex.js
-
curl -L -o test_regex.js https://huggingface.co/spaces/TALP-Project/multi-agent-smart-contracts/resolve/main/test_regex.js
440 Bytes
| const code = ` | |
| function setUp() public virtual { | |
| // target = address(new Target()); | |
| vm.startPrank(ATTACKER); | |
| vm.deal(ATTACKER, 100 ether); | |
| } | |
| `; | |
| const isTargetNotDeployed = code.includes("// target = new") || | |
| code.includes("//Target target = new") || | |
| code.match(/\/\/\s*([a-zA-Z0-9_]+)\s*=\s*new\s+[a-zA-Z0-9_]+/); | |
| console.log(!!isTargetNotDeployed); | |