Skip to content

Commit

Permalink
Merge pull request #1488 from crytic/ssa-copy
Browse files Browse the repository at this point in the history
copy event arguments during ssa conversion
  • Loading branch information
montyly authored Dec 12, 2022
2 parents f3fc106 + e77b36c commit 5314d76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slither/slithir/utils/ssa.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,9 @@ def copy_ir(ir, *instances):
return Delete(lvalue, variable)
if isinstance(ir, EventCall):
name = ir.name
return EventCall(name)
new_ir = EventCall(name)
new_ir.arguments = get_arguments(ir, *instances)
return new_ir
if isinstance(ir, HighLevelCall): # include LibraryCall
destination = get_variable(ir, lambda x: x.destination, *instances)
function_name = ir.function_name
Expand Down

0 comments on commit 5314d76

Please sign in to comment.