diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-02 12:55:36 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-02 13:31:50 +0800 |
commit | 042caa3363b15ed298486afe4236d665fc254065 (patch) | |
tree | 6ddb2a2c4a71edea7da6d740f12993dc1263eb3a /packages/0x.js/src | |
parent | eb667f653c4ee87132390844afaecf409c7575c8 (diff) | |
download | dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.gz dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.zst dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.zip |
Add async prefix
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r-- | packages/0x.js/src/utils/promisify.ts | 2 |
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); |