Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async uploadState(file: File): Promise {
const json = await readFileJson(file);
const stored: StoredAux = JSON.parse(json);
const value = await getBotsStateFromStoredAux(stored);
await this.simulationManager.primary.helper.addState(value);
}