aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-18 23:09:37 +0800
committerFabio Berger <me@fabioberger.com>2018-03-18 23:09:37 +0800
commitdb030016fa2e38d4135eb2d9ff16bc65aaa1fdd9 (patch)
tree9d5c25fcf11bff1de447dc416e1247e4d83ec448 /packages
parentae04f558822b3c094901036e5dcfe0c6f6aae07b (diff)
downloaddexon-sol-tools-db030016fa2e38d4135eb2d9ff16bc65aaa1fdd9.tar
dexon-sol-tools-db030016fa2e38d4135eb2d9ff16bc65aaa1fdd9.tar.gz
dexon-sol-tools-db030016fa2e38d4135eb2d9ff16bc65aaa1fdd9.tar.bz2
dexon-sol-tools-db030016fa2e38d4135eb2d9ff16bc65aaa1fdd9.tar.lz
dexon-sol-tools-db030016fa2e38d4135eb2d9ff16bc65aaa1fdd9.tar.xz
dexon-sol-tools-db030016fa2e38d4135eb2d9ff16bc65aaa1fdd9.tar.zst
dexon-sol-tools-db030016fa2e38d4135eb2d9ff16bc65aaa1fdd9.zip
Refactor CoverageSubprovider to use subproviders types
Diffstat (limited to 'packages')
-rw-r--r--packages/sol-cov/src/coverage_subprovider.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/sol-cov/src/coverage_subprovider.ts b/packages/sol-cov/src/coverage_subprovider.ts
index 71d90bba7..bc59d5ef8 100644
--- a/packages/sol-cov/src/coverage_subprovider.ts
+++ b/packages/sol-cov/src/coverage_subprovider.ts
@@ -1,4 +1,4 @@
-import { Callback, NextCallback, Subprovider } from '@0xproject/subproviders';
+import { Callback, ErrorCallback, NextCallback, Subprovider } from '@0xproject/subproviders';
import { promisify } from '@0xproject/utils';
import * as _ from 'lodash';
import { Lock } from 'semaphore-async-await';
@@ -35,11 +35,7 @@ export class CoverageSubprovider extends Subprovider {
this._getContractCodeAsync.bind(this),
);
}
- public handleRequest(
- payload: Web3.JSONRPCRequestPayload,
- next: NextCallback,
- end: (err: Error | null, result: any) => void,
- ) {
+ public handleRequest(payload: Web3.JSONRPCRequestPayload, next: NextCallback, end: ErrorCallback) {
switch (payload.method) {
case 'eth_sendTransaction':
const txData = payload.params[0];