From dd4ba2d0bced92e68d2cfd68d3aa3fbda403737e Mon Sep 17 00:00:00 2001 From: alpharush <0xalpharush@protonmail.com> Date: Sun, 7 Apr 2024 15:07:55 -0500 Subject: [PATCH] remove unused var --- slither/slithir/convert.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/slither/slithir/convert.py b/slither/slithir/convert.py index 21c611171..b8ce460bf 100644 --- a/slither/slithir/convert.py +++ b/slither/slithir/convert.py @@ -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: