Fix other failing tests

pull/335/head
Joran Honig 6 years ago
parent 554e5e32c2
commit d55725cf88
  1. 2
      mythril/support/truffle.py
  2. 2
      tests/graph_test.py

@ -41,7 +41,7 @@ def analyze_truffle_project(args):
ethcontract = ETHContract(bytecode, name=name) ethcontract = ETHContract(bytecode, name=name)
address = util.get_indexed_address(0) address = util.get_indexed_address(0)
sym = SymExecWrapper(ethcontract, address, max_depth=args.max_depth) sym = SymExecWrapper(ethcontract, address, args.strategy, max_depth=args.max_depth)
issues = fire_lasers(sym) issues = fire_lasers(sym)
if not len(issues): if not len(issues):

@ -15,7 +15,7 @@ class GraphTest(BaseTestCase):
contract = ETHContract(input_file.read_text()) contract = ETHContract(input_file.read_text())
sym = SymExecWrapper(contract, address=(util.get_indexed_address(0))) sym = SymExecWrapper(contract, address=(util.get_indexed_address(0)), strategy="dfs")
html = generate_graph(sym) html = generate_graph(sym)
output_current.write_text(html) output_current.write_text(html)

Loading…
Cancel
Save