Skip to content

Commit

Permalink
Remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
smonicas committed Feb 21, 2024
1 parent 81054b1 commit 86de161
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions slither/solc_parsing/declarations/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ def _analyze_attributes(self) -> None:
else:
attributes = self._functionNotParsed["attributes"]

if "payable" in attributes:
self._function.payable = attributes["payable"]
if "stateMutability" in attributes:
if attributes["stateMutability"] == "payable":
self._function.payable = True
Expand Down

0 comments on commit 86de161

Please sign in to comment.