Minor improvements to user_assertions.py

harvey_style_assertions
Nathan 5 years ago
parent f781ce3604
commit 3cab4beb76
  1. 5
      mythril/analysis/modules/user_assertions.py

@ -26,8 +26,7 @@ assertion_failed_hash = (
class UserAssertions(DetectionModule): class UserAssertions(DetectionModule):
"""This module searches for low level calls (e.g. call.value()) that """This module searches for user supplied exceptions: emit AssertionFailed("Error")."""
forward all gas to the callee."""
def __init__(self): def __init__(self):
"""""" """"""
@ -77,7 +76,7 @@ class UserAssertions(DetectionModule):
), ),
).decode("utf8") ).decode("utf8")
description_head = "A user-provided assertion failed. Make sure the user-provided assertion is correct." description_head = "A user-provided assertion failed."
if message: if message:
description_tail = "A user-provided assertion failed with message '{}'. Make sure the user-provided assertion is correct.".format( description_tail = "A user-provided assertion failed with message '{}'. Make sure the user-provided assertion is correct.".format(
message message

Loading…
Cancel
Save