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/utils.py

14 lines
314 B

from subprocess import check_output, CalledProcessError
def output_of(command, stderr=None):
"""
:param command:
:return:
"""
try:
return check_output(command, shell=True, stderr=stderr).decode("UTF-8")
except CalledProcessError as exc:
return exc.output.decode("UTF-8")