I would rather write: "Pour seulement m'en assurer... je t'inventai aini". "Seulement" translates "just". "Ainsi" placed after the subject and verb means "this way" (the way things are made), whereas it can mean "thus" (consequently) when it is placed before. However this sentence is not easy to translate out of context.