aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/subproviders/src/subproviders/ganache.ts2
-rw-r--r--packages/typescript-typings/types/ganache-core/index.d.ts2
2 files changed, 3 insertions, 1 deletions
diff --git a/packages/subproviders/src/subproviders/ganache.ts b/packages/subproviders/src/subproviders/ganache.ts
index 61b6bb5e9..79c43bc68 100644
--- a/packages/subproviders/src/subproviders/ganache.ts
+++ b/packages/subproviders/src/subproviders/ganache.ts
@@ -15,7 +15,7 @@ export class GanacheSubprovider extends Subprovider {
* Instantiates a GanacheSubprovider
* @param opts The desired opts with which to instantiate the Ganache provider
*/
- constructor(opts: any) {
+ constructor(opts: Ganache.GanacheOpts) {
super();
this._ganacheProvider = Ganache.provider(opts);
}
diff --git a/packages/typescript-typings/types/ganache-core/index.d.ts b/packages/typescript-typings/types/ganache-core/index.d.ts
index 84635038f..c07e6a78e 100644
--- a/packages/typescript-typings/types/ganache-core/index.d.ts
+++ b/packages/typescript-typings/types/ganache-core/index.d.ts
@@ -7,7 +7,9 @@ declare module 'ganache-core' {
};
port?: number;
network_id?: number;
+ networkId?: number;
mnemonic?: string;
+ gasLimit?: number;
}
// tslint:disable-next-line:completed-docs
export function provider(opts: GanacheOpts): Provider;