Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix constructor options interface name #25

Merged
merged 1 commit into from
Jan 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix constructor options interface name
rekmarks committed Jan 10, 2021

Verified

This commit was signed with the committer’s verified signature.
Madouura Madoura
commit 4208444cf91d01bb9dc2072ea74e68cc5e4ec622
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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");
}