Run prettier/linter

This commit is contained in:
Lawrence Forman
2019-06-21 21:44:26 -04:00
committed by Amir Bandeali
parent 33df11b755
commit 309dd7f300
5 changed files with 154 additions and 256 deletions

View File

@@ -45,19 +45,21 @@ export class PromiseWithTransactionHash<T> implements Promise<T> {
this.txHashPromise = txHashPromise;
this._promise = promise;
}
// tslint:disable-next-line:async-suffix
// tslint:disable:promise-function-async
// tslint:disable:async-suffix
public then<TResult>(
onFulfilled?: (v: T) => TResult | Promise<TResult>,
onRejected?: (reason: any) => Promise<never>,
): Promise<TResult> {
return this._promise.then<TResult>(onFulfilled, onRejected);
}
// tslint:disable-next-line:async-suffix
public catch<TResult>(onRejected?: (reason: any) => Promise<TResult>): Promise<TResult | T> {
return this._promise.catch(onRejected);
}
// tslint:enable:promise-function-async
// tslint:enable:async-suffix
get [Symbol.toStringTag](): 'Promise' {
return this._promise[Symbol.toStringTag];
return this._promise[Symbol.toStringTag];
}
}