Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Disable linter for txn returning PromiseWithTransactionHash
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioberger committed Nov 12, 2019
1 parent 8bc5faf commit 03b7314
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/integrations/src/function_assertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ export class FunctionAssertion<TBefore> 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;
Expand Down

0 comments on commit 03b7314

Please sign in to comment.