Add type hints to start_execution function

fix/timeout
Nikhil Parasaram 6 years ago
parent ecd975023d
commit 376a6604f5
  1. 2
      mythril/laser/ethereum/time_handler.py

@ -7,7 +7,7 @@ class TimeHandler(object, metaclass=Singleton):
self._start_time = None self._start_time = None
self._execution_time = None self._execution_time = None
def start_execution(self, execution_time, transaction_count): def start_execution(self, execution_time: int, transaction_count: int):
self._start_time = int(time.time() * 1000) self._start_time = int(time.time() * 1000)
self._execution_time = execution_time * 1000 // transaction_count self._execution_time = execution_time * 1000 // transaction_count

Loading…
Cancel
Save