docs: update recommendation for msg.value-inside-a-loop (#1971)

pull/1982/head
Paul Razvan Berg 1 year ago committed by GitHub
parent d56f663380
commit 7f7ff770d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/detectors/statements/msg_value_in_loop.py

@ -79,7 +79,7 @@ contract MsgValueInLoop{
# endregion wiki_exploit_scenario
WIKI_RECOMMENDATION = """
Track msg.value through a local variable and decrease its amount on every iteration/usage.
Provide an explicit array of amounts alongside the receivers array, and check that the sum of all amounts matches `msg.value`.
"""
def _detect(self) -> List[Output]:

Loading…
Cancel
Save