diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-28 00:33:32 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-28 00:33:32 +0800 |
commit | 51211a21ba64d81c50eb4e13146b1246c8da46e0 (patch) | |
tree | 8d817008f262418b460de4619b9dadce8341f489 | |
parent | 133b6fe2409930252ee332b95a14e837ed9b84e4 (diff) | |
download | dexon-sol-tools-51211a21ba64d81c50eb4e13146b1246c8da46e0.tar dexon-sol-tools-51211a21ba64d81c50eb4e13146b1246c8da46e0.tar.gz dexon-sol-tools-51211a21ba64d81c50eb4e13146b1246c8da46e0.tar.bz2 dexon-sol-tools-51211a21ba64d81c50eb4e13146b1246c8da46e0.tar.lz dexon-sol-tools-51211a21ba64d81c50eb4e13146b1246c8da46e0.tar.xz dexon-sol-tools-51211a21ba64d81c50eb4e13146b1246c8da46e0.tar.zst dexon-sol-tools-51211a21ba64d81c50eb4e13146b1246c8da46e0.zip |
Improve `ganache-core`'s `GanacheOpts` type and require it instead of `any`
-rw-r--r-- | packages/subproviders/src/subproviders/ganache.ts | 2 | ||||
-rw-r--r-- | packages/typescript-typings/types/ganache-core/index.d.ts | 2 |
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; |