Security analysis tool for EVM bytecode. Supports smart contracts built for Ethereum, Hedera, Quorum, Vechain, Roostock, Tron and other EVM-compatible blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mythril/tests/integration_tests/src_mapping_test.py

14 lines
396 B

from subprocess import STDOUT
from tests import PROJECT_DIR, TESTDATA
from utils import output_of
MYTH = str(PROJECT_DIR / "myth")
def test_positive_solc_settings():
file_path = str(TESTDATA / "input_contracts" / "destruct_crlf.sol")
command = f"python3 {MYTH} analyze {file_path} --solv 0.5.0"
output = output_of(command, stderr=STDOUT)
assert "selfdestruct(addr)" in output