diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-12 01:48:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-12 01:48:18 +0800 |
commit | 7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5 (patch) | |
tree | c8e47e9e42e58febc45411a360224535786cba48 /packages/subproviders | |
parent | 817c332d11835f02726f0609374d1c25c9ab39b5 (diff) | |
parent | 927ccc489c8cd69723bb2b13f81de150d7b255d0 (diff) | |
download | dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar.gz dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar.bz2 dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar.lz dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar.xz dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.tar.zst dexon-sol-tools-7e5866ce3fffc67633d3ab84cc3d2a6abdd22ce5.zip |
Merge pull request #675 from 0xProject/feature/sol-cov-geth
`ProfilerSubprovider` & Geth-related fixes for `sol-cov`
Diffstat (limited to 'packages/subproviders')
-rw-r--r-- | packages/subproviders/CHANGELOG.json | 9 | ||||
-rw-r--r-- | packages/subproviders/src/subproviders/subprovider.ts | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/packages/subproviders/CHANGELOG.json b/packages/subproviders/CHANGELOG.json index d3bf79ac4..d7fe5e330 100644 --- a/packages/subproviders/CHANGELOG.json +++ b/packages/subproviders/CHANGELOG.json @@ -1,5 +1,14 @@ [ { + "version": "0.10.3", + "changes": [ + { + "note": "Define engine type as Provider in setEngine", + "pr": 675 + } + ] + }, + { "timestamp": 1527009133, "version": "0.10.2", "changes": [ diff --git a/packages/subproviders/src/subproviders/subprovider.ts b/packages/subproviders/src/subproviders/subprovider.ts index 329bf7d9c..ff8378c4e 100644 --- a/packages/subproviders/src/subproviders/subprovider.ts +++ b/packages/subproviders/src/subproviders/subprovider.ts @@ -1,5 +1,5 @@ import { promisify } from '@0xproject/utils'; -import { JSONRPCRequestPayload, JSONRPCResponsePayload } from 'ethereum-types'; +import { JSONRPCRequestPayload, JSONRPCResponsePayload, Provider } from 'ethereum-types'; import { Callback, ErrorCallback, JSONRPCRequestPayloadWithMethod } from '../types'; /** @@ -8,7 +8,7 @@ import { Callback, ErrorCallback, JSONRPCRequestPayloadWithMethod } from '../typ */ export abstract class Subprovider { // tslint:disable-next-line:underscore-private-and-protected - private engine: any; + private engine!: Provider; // Ported from: https://github.com/MetaMask/provider-engine/blob/master/util/random-id.js private static _getRandomId(): number { const extraDigits = 3; @@ -56,7 +56,7 @@ export abstract class Subprovider { * This is only called within the ProviderEngine source code, do not call * directly. */ - public setEngine(engine: any): void { + public setEngine(engine: Provider): void { this.engine = engine; } } |