-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add a better mechanism for variables management #4446
Add a better mechanism for variables management #4446
Conversation
🦋 Changeset detectedLatest commit: 2257ae6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/hardhat-core/test/internal/core/secrets/secrets-manager.ts
Outdated
Show resolved
Hide resolved
const globalAsAny: any = global; | ||
Object.entries(configEnv).forEach( | ||
([key, value]) => (globalAsAny[key] = value) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment should also indicate that this is a lightweight version of loadConfigAndTasks
that duplicates some of its logic. @schaable this is a decision we consciously made; the alternative was to refactor the config-loading.ts
module to make that part of the logic reusable, but that didn't seem worth the risk.
Add the new feature: configuration variables.
See docs for more info: https://hardhat.org/hardhat-runner/docs/guides/configuration-variables