From e8a8081482aedc10e2e0b94b775f7342b1aadf71 Mon Sep 17 00:00:00 2001 From: webthethird Date: Thu, 18 May 2023 16:06:22 -0500 Subject: [PATCH] Typo, solc version --- tests/unit/slithir/test_implicit_returns.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/unit/slithir/test_implicit_returns.py b/tests/unit/slithir/test_implicit_returns.py index e82be5146..f7a124864 100644 --- a/tests/unit/slithir/test_implicit_returns.py +++ b/tests/unit/slithir/test_implicit_returns.py @@ -61,9 +61,9 @@ def test_return_multiple_with_struct(slither_from_source) -> None: assert len(f.nodes) == 4 node = f.nodes[3] assert node.type == NodeType.RETURN - assert isinstance(node_true.irs[0], Return) - assert node_true.irs[0].values[0] == f.get_local_variable_from_name("y") - assert node_true.irs[0].values[1] == f.get_local_variable_from_name("z") + assert isinstance(node.irs[0], Return) + assert node.irs[0].values[0] == f.get_local_variable_from_name("y") + assert node.irs[0].values[1] == f.get_local_variable_from_name("z") def test_nested_ifs_with_loop_legacy(slither_from_source) -> None: @@ -89,7 +89,7 @@ def test_nested_ifs_with_loop_legacy(slither_from_source) -> None: } } """ - with slither_from_source(source, legacy=True) as slither: + with slither_from_source(source, solc_version="0.4.1", legacy=True) as slither: c: Contract = slither.get_contract_from_name("Contract")[0] f: Function = c.functions[0] node_if = f.nodes[2] @@ -132,7 +132,7 @@ def test_nested_ifs_with_loop_compact(slither_from_source) -> None: } } """ - with slither_from_source(source, legacy=False) as slither: + with slither_from_source(source, solc_version="0.8.0", legacy=False) as slither: c: Contract = slither.get_contract_from_name("Contract")[0] f: Function = c.functions[0] node_if = f.nodes[2]