Skip to content

Commit

Permalink
Update test to assert expected parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
dokzai committed Oct 6, 2023
1 parent 1cdb202 commit 8feb494
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/e2e/compilation/test_resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def test_contract_function_parameter(solc_binary_path) -> None:
compilation = CryticCompile(standard_json, solc=solc_path)
slither = Slither(compilation)
contract = slither.contracts[0]
function = contract.functions[0]
parameters = function.parameters

for function in contract.functions:
for parameter in function.parameters:
str(parameter)
assert (parameters[0].name == 'param1')
assert (parameters[1].name == '')
assert (parameters[2].name == 'param3')

0 comments on commit 8feb494

Please sign in to comment.