pull/2376/head
alpharush 8 months ago
parent b4260b113c
commit 98f37bc288
  1. 2
      slither/core/slither_core.py
  2. 1
      tests/unit/core/test_virtual_overrides.py

@ -208,7 +208,7 @@ class SlitherCore(Context):
for offset in range(definition.start, definition.end + 1):
if (
isinstance(thing, TopLevel)
isinstance(thing, (TopLevel, Contract))
or (
isinstance(thing, FunctionContract)
and thing.contract_declarer == thing.contract

@ -5,6 +5,7 @@ TEST_DATA_DIR = Path(__file__).resolve().parent / "test_data"
def test_overrides(solc_binary_path) -> None:
# pylint: disable=too-many-statements,too-many-locals
solc_path = solc_binary_path("0.8.15")
slither = Slither(Path(TEST_DATA_DIR, "virtual_overrides.sol").as_posix(), solc=solc_path)

Loading…
Cancel
Save