mirror of https://github.com/ConsenSys/mythril
Move some code to common file (#1343)
parent
bca745faaa
commit
df744b863d
@ -0,0 +1,6 @@ |
||||
import traceback |
||||
|
||||
|
||||
def is_prehook() -> bool: |
||||
"""Check if we are in prehook. One of Bernhard's trademark hacks!""" |
||||
return "pre_hook" in traceback.format_stack()[-5] |
Loading…
Reference in new issue