Skip to content

Commit 1301923

Browse files
committed
Run black
1 parent 8e1affa commit 1301923

13 files changed

+13
-13
lines changed

slither/detectors/shadowing/abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ShadowingAbstractDetection(AbstractDetector):
4848
```
4949
`owner` of `BaseContract` is shadowed in `DerivedContract`."""
5050
# endregion wiki_exploit_scenario
51-
51+
5252
WIKI_RECOMMENDATION = "Remove the state variable shadowing."
5353

5454
def _detect(self):

slither/detectors/shadowing/builtin_symbols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class BuiltinSymbolShadowing(AbstractDetector):
3939
```
4040
`now` is defined as a state variable, and shadows with the built-in symbol `now`. The function `assert` overshadows the built-in `assert` function. Any use of either of these built-in symbols may lead to unexpected results."""
4141
# endregion wiki_exploit_scenario
42-
42+
4343
WIKI_RECOMMENDATION = "Rename the local variables, state variables, functions, modifiers, and events that shadow a builtin symbol."
4444

4545
SHADOWING_FUNCTION = "function"

slither/detectors/shadowing/local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class LocalShadowing(AbstractDetector):
4242
```
4343
`sensitive_function.owner` shadows `Bug.owner`. As a result, the use of `owner` in `sensitive_function` might be incorrect."""
4444
# endregion wiki_exploit_scenario
45-
45+
4646
WIKI_RECOMMENDATION = "Rename the local variables that shadow another component."
4747

4848
OVERSHADOWED_FUNCTION = "function"

slither/detectors/slither/name_reused.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class NameReused(AbstractDetector):
4747
As a result, the second contract cannot be analyzed.
4848
"""
4949
# endregion wiki_exploit_scenario
50-
50+
5151
WIKI_RECOMMENDATION = "Rename the contract."
5252

5353
def _detect(self): # pylint: disable=too-many-locals,too-many-branches

slither/detectors/source/rtlo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class RightToLeftOverride(AbstractDetector):
4646
4747
"""
4848
# endregion wiki_exploit_scenario
49-
49+
5050
WIKI_RECOMMENDATION = "Special control characters must not be allowed."
5151

5252
RTLO_CHARACTER_ENCODED = "\u202e".encode("utf-8")

slither/detectors/statements/assert_state_change.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class AssertStateChange(AbstractDetector):
6666
The assert in `bad()` increments the state variable `s_a` while checking for the condition.
6767
"""
6868
# endregion wiki_exploit_scenario
69-
69+
7070
WIKI_RECOMMENDATION = """Use `require` for invariants modifying the state."""
7171

7272
def _detect(self):

slither/detectors/statements/boolean_constant_misuse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class BooleanConstantMisuse(AbstractDetector):
5555
Boolean constants in code have only a few legitimate uses.
5656
Other uses (in complex expressions, as conditionals) indicate either an error or, most likely, the persistence of faulty code."""
5757
# endregion wiki_exploit_scenario
58-
58+
5959
WIKI_RECOMMENDATION = """Verify and simplify the condition."""
6060

6161
@staticmethod

slither/detectors/statements/calls_in_loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class MultipleCallsInLoop(AbstractDetector):
4242
```
4343
If one of the destinations has a fallback function that reverts, `bad` will always revert."""
4444
# endregion wiki_exploit_scenario
45-
45+
4646
WIKI_RECOMMENDATION = "Favor [pull over push](https://github.com/ethereum/wiki/wiki/Safety#favor-pull-over-push-for-external-calls) strategy for external calls."
4747

4848
@staticmethod

slither/detectors/statements/controlled_delegatecall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ControlledDelegateCall(AbstractDetector):
3939
```
4040
Bob calls `delegate` and delegates the execution to his malicious contract. As a result, Bob withdraws the funds of the contract and destructs it."""
4141
# endregion wiki_exploit_scenario
42-
42+
4343
WIKI_RECOMMENDATION = "Avoid using `delegatecall`. Use only trusted destinations."
4444

4545
def _detect(self):

slither/detectors/statements/costly_operations_in_loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CostlyOperationsInLoop(AbstractDetector):
4646
```
4747
Incrementing `state_variable` in a loop incurs a lot of gas because of expensive `SSTOREs`, which might lead to an `out-of-gas`."""
4848
# endregion wiki_exploit_scenario
49-
49+
5050
WIKI_RECOMMENDATION = "Use a local variable to hold the loop computation result."
5151

5252
@staticmethod

0 commit comments

Comments
 (0)