Skip to content

Commit

Permalink
https://github.com/palkeo/panoramix/issues/10
Browse files Browse the repository at this point in the history
  • Loading branch information
NikZak committed Jun 17, 2021
1 parent 876a8de commit 1046eed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions panoramix/decompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
from contextlib import redirect_stdout

import timeout_decorator
from wrapt_timeout_decorator import timeout

import panoramix.folder as folder
from panoramix.contract import Contract
Expand Down Expand Up @@ -155,7 +155,7 @@ def _decompile_with_loader(loader, only_func_name=None) -> Decompilation:
if target > 1 and loader.lines[target][1] == "jumpdest":
target += 1

@timeout_decorator.timeout(60 * 3, timeout_exception=TimeoutInterrupt)
@timeout(60 * 3, timeout_exception=TimeoutInterrupt, use_signals=False)
def dec():
trace = VM(loader).run(target, stack=stack, timeout=60)
explain("Initial decompiled trace", trace[1:])
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"coloredlogs",
"requests",
"web3",
"timeout_decorator",
"wrapt_timeout_decorator",
"appdirs",
]

Expand Down

0 comments on commit 1046eed

Please sign in to comment.