diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-23 23:46:21 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 05:15:00 +0800 |
commit | b3c01f675097cd3123d2d9130354eed1413b040f (patch) | |
tree | 558b750734eb3f87a554a45913c6e10535261ba7 | |
parent | 34beee1edcd59b0f78c3dcce51cf847291ae06b4 (diff) | |
download | dexon-sol-tools-b3c01f675097cd3123d2d9130354eed1413b040f.tar dexon-sol-tools-b3c01f675097cd3123d2d9130354eed1413b040f.tar.gz dexon-sol-tools-b3c01f675097cd3123d2d9130354eed1413b040f.tar.bz2 dexon-sol-tools-b3c01f675097cd3123d2d9130354eed1413b040f.tar.lz dexon-sol-tools-b3c01f675097cd3123d2d9130354eed1413b040f.tar.xz dexon-sol-tools-b3c01f675097cd3123d2d9130354eed1413b040f.tar.zst dexon-sol-tools-b3c01f675097cd3123d2d9130354eed1413b040f.zip |
Revert "Remove redundant async"
This reverts commit 8d11ababd62d947e338757f57c41179510b11338.
-rw-r--r-- | packages/0x.js/src/contract.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/0x.js/src/contract.ts b/packages/0x.js/src/contract.ts index ebc4c5597..e9c49c9f1 100644 --- a/packages/0x.js/src/contract.ts +++ b/packages/0x.js/src/contract.ts @@ -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> = {}; |