Skip to content

Commit

Permalink
Merge pull request #69 from tynes/fix/lazy-config
Browse files Browse the repository at this point in the history
fix: make foundry config a lazy object
  • Loading branch information
tynes authored Jun 28, 2022
2 parents cb48423 + 648d494 commit af68949
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sweet-wasps-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@foundry-rs/hardhat-forge": patch
---

Make foundry config lazy
4 changes: 3 additions & 1 deletion packages/hardhat-forge/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ extendEnvironment((hre: HardhatRuntimeEnvironment) => {

extendConfig(
(config: HardhatConfig, userConfig: Readonly<HardhatUserConfig>) => {
config.foundry = userConfig.foundry || {};
config.foundry = lazyObject(() => {
return userConfig.foundry || {};
});
}
);

0 comments on commit af68949

Please sign in to comment.