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

feat(contracts): optionally override address book #114

Merged
merged 2 commits into from
Nov 14, 2023
Merged

Conversation

Theodus
Copy link
Member

@Theodus Theodus commented Nov 14, 2023

This is required for the local-network to function properly.

Comment on lines 81 to 84
? // eslint-disable-next-line @typescript-eslint/no-explicit-any
JSON.parse(readFileSync(addressBook).toString())[`${chainId}`]
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(DEPLOYED_CONTRACTS as any)[`${chainId}`]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if I like the fact that a file is read inside connectContracts. Wouldn't it be cleaner to pass in a map and do the file loading outside this function?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@Theodus Theodus requested a review from Jannis November 14, 2023 15:22
@Theodus Theodus merged commit 8c97d85 into master Nov 14, 2023
4 checks passed
@Theodus Theodus deleted the theodus/addresses branch November 14, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants