aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-02 12:55:36 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-02 13:31:50 +0800
commit042caa3363b15ed298486afe4236d665fc254065 (patch)
tree6ddb2a2c4a71edea7da6d740f12993dc1263eb3a /packages/0x.js/src/utils
parenteb667f653c4ee87132390844afaecf409c7575c8 (diff)
downloaddexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.gz
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.bz2
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.lz
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.xz
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.zst
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.zip
Add async prefix
Diffstat (limited to 'packages/0x.js/src/utils')
-rw-r--r--packages/0x.js/src/utils/promisify.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/0x.js/src/utils/promisify.ts b/packages/0x.js/src/utils/promisify.ts
index 8021a3c9f..1eb1bf29f 100644
--- a/packages/0x.js/src/utils/promisify.ts
+++ b/packages/0x.js/src/utils/promisify.ts
@@ -12,7 +12,7 @@ export function promisify<T>(
) => void,
target: any,
): (...callArgs: any[]) => Promise<T> {
- const promisifiedFunction = (...callArgs: any[]): Promise<T> => {
+ const promisifiedFunction = async (...callArgs: any[]): Promise<T> => {
return new Promise<T>((resolve, reject) => {
const callback = (err: Error|null, data?: T) => {
_.isNull(err) ? resolve(data) : reject(err);