Skip to content

Commit

Permalink
remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed Apr 7, 2024
1 parent 0165614 commit dd4ba2d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions slither/slithir/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1561,14 +1561,7 @@ def look_for_library_or_top_level(
def convert_to_library_or_top_level(
ir: HighLevelCall, node: "Node", using_for
) -> Optional[Union[LibraryCall, InternalCall,]]:
# We use contract_declarer, because Solidity resolve the library
# before resolving the inheritance.
# Though we could use .contract as libraries cannot be shadowed
contract = (
node.function.contract_declarer if isinstance(node.function, FunctionContract) else None
)
t = ir.destination.type

if t in using_for:
new_ir = look_for_library_or_top_level(ir, using_for, t)
if new_ir:
Expand Down

0 comments on commit dd4ba2d

Please sign in to comment.