Skip to content

Commit

Permalink
Clean up elif statement (#2179)
Browse files Browse the repository at this point in the history
- removed unnecessary statement
  • Loading branch information
sammiee5311 committed Oct 15, 2021
1 parent fb8a329 commit 36cd496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions newsfragments/2179.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clean up elif statement in contract.py
4 changes: 1 addition & 3 deletions web3/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,9 +887,7 @@ def _set_function_info(self) -> None:
self.args,
self.kwargs
)
if self.function_identifier is FallbackFn:
self.selector = encode_hex(b'')
elif self.function_identifier is ReceiveFn:
if self.function_identifier in [FallbackFn, ReceiveFn]:
self.selector = encode_hex(b'')
elif is_text(self.function_identifier):
# https://github.com/python/mypy/issues/4976
Expand Down

0 comments on commit 36cd496

Please sign in to comment.