diff --git a/src/upgrader.ts b/src/upgrader.ts index 09b379b..5d1fe94 100644 --- a/src/upgrader.ts +++ b/src/upgrader.ts @@ -203,11 +203,13 @@ export abstract class Upgrader { private async protectedDeployNewImplementation (contract: string) { await this.deploySemaphore.acquire(); + let result: ContractToUpgrade | null = null; try { - return this.deployNewImplementation(contract); + result = await this.deployNewImplementation(contract); } finally { this.deploySemaphore.release(); } + return result; } private async deployNewImplementation (contract: string) {