Revert "Remove redundant async"

This reverts commit 8d11ababd62d947e338757f57c41179510b11338.
This commit is contained in:
Leonid Logvinov
2017-11-23 09:46:21 -06:00
parent 34beee1edc
commit b3c01f6750

View File

@@ -48,7 +48,7 @@ export class Contract implements Web3.ContractInstance {
});
}
private promisifyWithDefaultParams(fn: (...args: any[]) => void): (...args: any[]) => Promise<any> {
const promisifiedWithDefaultParams = (...args: any[]) => {
const promisifiedWithDefaultParams = async (...args: any[]) => {
const promise = new Promise((resolve, reject) => {
const lastArg = args[args.length - 1];
let txData: Partial<Web3.TxData> = {};