"Tuple type used as state" error in solve

The function is defined as generate_solution_data(system_odes, tspan, u0 but you call it like generate_solution_data(lotka!, u0, tspan. tspan and u0 are flipped.