diff options
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); |