diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-23 01:52:17 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-23 01:52:17 +0800 |
commit | b7c119b2aaaa2f3579ca4aeef198eca7f38f1216 (patch) | |
tree | 16956eb295a2b0a21fcab07b4e2377c2cd59d3c9 /packages/subproviders | |
parent | 3c2af2067f768bd3ffe233d9a7c2d0232db6868e (diff) | |
download | dexon-0x-contracts-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar dexon-0x-contracts-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.gz dexon-0x-contracts-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.bz2 dexon-0x-contracts-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.lz dexon-0x-contracts-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.xz dexon-0x-contracts-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.tar.zst dexon-0x-contracts-b7c119b2aaaa2f3579ca4aeef198eca7f38f1216.zip |
Fix many linter errors that showed up upon upgrading tsutil
Diffstat (limited to 'packages/subproviders')
-rw-r--r-- | packages/subproviders/src/subproviders/subprovider.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/subproviders/src/subproviders/subprovider.ts b/packages/subproviders/src/subproviders/subprovider.ts index 53a3d07ea..dcf880c79 100644 --- a/packages/subproviders/src/subproviders/subprovider.ts +++ b/packages/subproviders/src/subproviders/subprovider.ts @@ -53,6 +53,8 @@ export abstract class Subprovider { */ public async emitPayloadAsync(payload: Partial<JSONRPCRequestPayloadWithMethod>): Promise<JSONRPCResponsePayload> { const finalPayload = Subprovider._createFinalPayload(payload); + // Promisify does the binding internally and `this` is supplied as a second argument + // tslint:disable-next-line:no-unbound-method const response = await promisify<JSONRPCResponsePayload>(this.engine.sendAsync, this.engine)(finalPayload); return response; } |