Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed Sep 26, 2024
1 parent 584d64c commit 2075e6f
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions slither/slithir/operations/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,29 @@ def __init__(
# Can be an ElementaryType because of bytes.concat, string.concat
assert is_valid_rvalue(variable_left) or isinstance(
variable_left,
(Contract, Enum, Function, Event, CustomError, SolidityImportPlaceHolder, ElementaryType),
(
Contract,
Enum,
Function,
Event,
CustomError,
SolidityImportPlaceHolder,
ElementaryType,
),
)

assert isinstance(variable_right, Constant)
assert isinstance(result, ReferenceVariable)
super().__init__()
self._variable_left: Union[
RVALUE, Contract, Enum, Function, Event, CustomError, SolidityImportPlaceHolder, ElementaryType
RVALUE,
Contract,
Enum,
Function,
Event,
CustomError,
SolidityImportPlaceHolder,
ElementaryType,
] = variable_left
self._variable_right = variable_right
self._lvalue = result
Expand Down

0 comments on commit 2075e6f

Please sign in to comment.