Skip to content

Commit

Permalink
Add missing await for Deploy checking
Browse files Browse the repository at this point in the history
  • Loading branch information
iamalwaysuncomfortable committed Oct 21, 2023
1 parent 22e92e2 commit 3a06c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/program-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...`);
Expand Down

0 comments on commit 3a06c3c

Please sign in to comment.