From a4810bccf754f3a3c29004f141ec9a4fd3cc4f06 Mon Sep 17 00:00:00 2001 From: Bernhard Mueller Date: Sat, 20 Jan 2018 13:36:05 +0700 Subject: [PATCH] Truffle: Ignore Migrations contract --- mythril/support/truffle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythril/support/truffle.py b/mythril/support/truffle.py index e37b2a50..81b775f7 100644 --- a/mythril/support/truffle.py +++ b/mythril/support/truffle.py @@ -19,7 +19,7 @@ def analyze_truffle_project(): for filename in files: - if re.match(r'.*\.json$', filename): + if re.match(r'.*\.json$', filename) and filename != "Migrations.json": with open(os.path.join(build_dir, filename)) as cf: contractdata = json.load(cf)