Improve ganache-core's GanacheOpts type and require it instead of any
This commit is contained in:
@@ -15,7 +15,7 @@ export class GanacheSubprovider extends Subprovider {
|
|||||||
* Instantiates a GanacheSubprovider
|
* Instantiates a GanacheSubprovider
|
||||||
* @param opts The desired opts with which to instantiate the Ganache provider
|
* @param opts The desired opts with which to instantiate the Ganache provider
|
||||||
*/
|
*/
|
||||||
constructor(opts: any) {
|
constructor(opts: Ganache.GanacheOpts) {
|
||||||
super();
|
super();
|
||||||
this._ganacheProvider = Ganache.provider(opts);
|
this._ganacheProvider = Ganache.provider(opts);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,9 @@ declare module 'ganache-core' {
|
|||||||
};
|
};
|
||||||
port?: number;
|
port?: number;
|
||||||
network_id?: number;
|
network_id?: number;
|
||||||
|
networkId?: number;
|
||||||
mnemonic?: string;
|
mnemonic?: string;
|
||||||
|
gasLimit?: number;
|
||||||
}
|
}
|
||||||
// tslint:disable-next-line:completed-docs
|
// tslint:disable-next-line:completed-docs
|
||||||
export function provider(opts: GanacheOpts): Provider;
|
export function provider(opts: GanacheOpts): Provider;
|
||||||
|
|||||||
Reference in New Issue
Block a user