From 3a06c3c41bbf494f784196e6bbeb09e9e3f2b6e2 Mon Sep 17 00:00:00 2001 From: Michael Turner Date: Sat, 21 Oct 2023 19:47:21 +0200 Subject: [PATCH] Add missing await for Deploy checking --- sdk/src/program-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/program-manager.ts b/sdk/src/program-manager.ts index fc6760587..4c9d6c678 100644 --- a/sdk/src/program-manager.ts +++ b/sdk/src/program-manager.ts @@ -137,7 +137,7 @@ class ProgramManager { const programObject = Program.fromString(program); let programSource; try { - programSource = this.networkClient.getProgram(programObject.id()); + programSource = await this.networkClient.getProgram(programObject.id()); } catch (e) { // Program does not exist on the network, deployment can proceed console.log(`Program ${programObject.id()} does not exist on the network, deploying...`);