Commit 2fd0a2fe authored by Mark Tyneway's avatar Mark Tyneway

hardhat-deploy-config: use `lazyObject`

Attempt to fix oom issue
parent 8004eadb
---
'@eth-optimism/hardhat-deploy-config': patch
---
Use lazyObject
...@@ -6,6 +6,7 @@ import { ...@@ -6,6 +6,7 @@ import {
HardhatRuntimeEnvironment, HardhatRuntimeEnvironment,
HardhatUserConfig, HardhatUserConfig,
} from 'hardhat/types' } from 'hardhat/types'
import { lazyObject } from 'hardhat/plugins'
import { ethers } from 'ethers' import { ethers } from 'ethers'
// From: https://github.com/wighawag/hardhat-deploy/blob/master/src/index.ts#L63-L76 // From: https://github.com/wighawag/hardhat-deploy/blob/master/src/index.ts#L63-L76
...@@ -104,5 +105,5 @@ extendConfig( ...@@ -104,5 +105,5 @@ extendConfig(
) )
extendEnvironment((hre) => { extendEnvironment((hre) => {
hre.deployConfig = loadDeployConfig(hre) hre.deployConfig = lazyObject(() => loadDeployConfig(hre))
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment