def METHOD_NAME(self, js_data, single_password_enabled, single_password):
    self._logger.info('Creating wallet from wizard data')
    data = js_data.toVariant()
    if single_password_enabled and single_password:
        data['encrypt'] = True
        data['password'] = single_password
    path = os.path.join(os.path.dirname(self._daemon.daemon.config.get_wallet_path()), data['wallet_name'])
    try:
        self.create_storage(path, data)
        # minimally populate self after create
        self._password = data['password']
        self.path = path
        self.createSuccess.emit()
    except Exception as e:
        self._logger.exception(f"createStorage errored: {e!r}")
        self.createError.emit(str(e))