diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-04 02:56:17 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-04 02:56:17 +0800 |
commit | f5e6e0eaf7dfa1b50852e897948e89e18aa1716c (patch) | |
tree | 12cdde36b9cd691b0d8b3472a584949b3e3da25b | |
parent | b2c423dd8410b884357fdb476012e4a213e52580 (diff) | |
download | dexon-sol-tools-f5e6e0eaf7dfa1b50852e897948e89e18aa1716c.tar dexon-sol-tools-f5e6e0eaf7dfa1b50852e897948e89e18aa1716c.tar.gz dexon-sol-tools-f5e6e0eaf7dfa1b50852e897948e89e18aa1716c.tar.bz2 dexon-sol-tools-f5e6e0eaf7dfa1b50852e897948e89e18aa1716c.tar.lz dexon-sol-tools-f5e6e0eaf7dfa1b50852e897948e89e18aa1716c.tar.xz dexon-sol-tools-f5e6e0eaf7dfa1b50852e897948e89e18aa1716c.tar.zst dexon-sol-tools-f5e6e0eaf7dfa1b50852e897948e89e18aa1716c.zip |
Used generic declaration to remove need for `any`
-rw-r--r-- | packages/subproviders/src/subproviders/subprovider.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/subproviders/src/subproviders/subprovider.ts b/packages/subproviders/src/subproviders/subprovider.ts index 65f2cd305..c51462f07 100644 --- a/packages/subproviders/src/subproviders/subprovider.ts +++ b/packages/subproviders/src/subproviders/subprovider.ts @@ -40,7 +40,7 @@ export class Subprovider { */ public async emitPayloadAsync(payload: Partial<JSONRPCRequestPayloadWithMethod>): Promise<JSONRPCResponsePayload> { const finalPayload = Subprovider._createFinalPayload(payload); - const response: any = await promisify(this._engine.sendAsync, this._engine)(finalPayload); + const response = await promisify<JSONRPCResponsePayload>(this._engine.sendAsync, this._engine)(finalPayload); return response; } /** |