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...`);