diff --git a/src/HavenoDaemon.ts b/src/HavenoDaemon.ts index d7de8230..59ef3e3a 100644 --- a/src/HavenoDaemon.ts +++ b/src/HavenoDaemon.ts @@ -275,7 +275,7 @@ class HavenoDaemon { */ async createAccount(password: string): Promise { let that = this; - await new Promise(function(resolve, reject) { + await new Promise(function(resolve, reject) { that._accountClient.createAccount(new CreateAccountRequest().setPassword(password), {password: that._password}, function(err: grpcWeb.RpcError) { if (err) reject(err); else resolve(); @@ -291,7 +291,7 @@ class HavenoDaemon { */ async openAccount(password: string): Promise { let that = this; - await new Promise(function(resolve, reject) { + await new Promise(function(resolve, reject) { that._accountClient.openAccount(new OpenAccountRequest().setPassword(password), {password: that._password}, function(err: grpcWeb.RpcError) { if (err) reject(err); else resolve(); @@ -1158,7 +1158,7 @@ class HavenoDaemon { async shutdownServer() { if (this._keepAliveLooper) this._keepAliveLooper.stop(); let that = this; - await new Promise(function(resolve, reject) { + await new Promise(function(resolve, reject) { that._shutdownServerClient.stop(new StopRequest(), {password: that._password}, function(err: grpcWeb.RpcError) { // process receives 'exit' event if (err) reject(err); else resolve();