From 4208444cf91d01bb9dc2072ea74e68cc5e4ec622 Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Sun, 10 Jan 2021 11:55:27 -0800 Subject: [PATCH] Fix constructor options interface name --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 4c67a28..525376d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ interface HttpProvider { timeout: number; } -interface Provider { +interface MethodRegistryArgs { network: string; provider: HttpProvider; } @@ -23,7 +23,7 @@ export class MethodRegistry { registry: DeployedRegistryContract; - constructor(opts: Provider) { + constructor(opts: MethodRegistryArgs) { if (!opts.provider) { throw new Error("Missing required 'provider' option"); }