diff --git a/contracts/integrations/src/function_assertions.ts b/contracts/integrations/src/function_assertions.ts index 37ebceb2cc..e6b3f27e6f 100644 --- a/contracts/integrations/src/function_assertions.ts +++ b/contracts/integrations/src/function_assertions.ts @@ -84,10 +84,12 @@ export class FunctionAssertion implements Assertion { // result and receipt to the after condition. try { callResult.data = await this.wrapperFunction.callAsync(...args); + // tslint:disable:await-promise callResult.receipt = this.wrapperFunction.awaitTransactionSuccessAsync !== undefined ? await this.wrapperFunction.awaitTransactionSuccessAsync(...args) : undefined; + // tslint:enable:await-promise } catch (error) { callResult.data = error; callResult.success = false;