diff --git a/slither/slithir/utils/ssa.py b/slither/slithir/utils/ssa.py index 827be8e18..a16047c19 100644 --- a/slither/slithir/utils/ssa.py +++ b/slither/slithir/utils/ssa.py @@ -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