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: Remove direct "hardhat" imports, update types in deploy/ scripts #284

Merged
merged 3 commits into from
Apr 28, 2023

Conversation

nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented Apr 28, 2023

The HRE should only be constructed once, and for the deploy scripts we should try to load that existing object

The HRE should only be constructed once, and for the deploy scripts we should try to load that existing object

Unfortunately we can't use mark the `hre` type as a `HardhatRuntimeEnvironment` because the `hardhat-deploy` module adds some properties to it that we want to access like `deployments` and `companionNetworks` that we want to use.
Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

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

I think the additional typing is a good move. +1

@nicholaspai nicholaspai merged commit e7d312e into master Apr 28, 2023
@nicholaspai nicholaspai deleted the 2.2.1 branch April 28, 2023 20:08
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