File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -239,12 +239,14 @@ function force_hardhat_unlimited_contract_size
239
239
240
240
if [[ $config_file == * \. js ]]; then
241
241
[[ $config_var_name == " " ]] || assertFail
242
- echo " module.exports.networks.hardhat.allowUnlimitedContractSize = true" >> " $config_file "
242
+ echo " module.exports.networks.hardhat = module.exports.networks.hardhat || {allowUnlimitedContractSize: undefined}"
243
+ echo " module.exports.networks.hardhat.allowUnlimitedContractSize = true"
243
244
else
244
245
[[ $config_file == * \. ts ]] || assertFail
245
246
[[ $config_var_name != " " ]] || assertFail
246
- echo " ${config_var_name} .networks!.hardhat!.allowUnlimitedContractSize = true" >> " $config_file "
247
- fi
247
+ echo " ${config_var_name} .networks!.hardhat ??= {allowUnlimitedContractSize: undefined};"
248
+ echo " ${config_var_name} .networks!.hardhat!.allowUnlimitedContractSize = true"
249
+ fi >> " $config_file "
248
250
}
249
251
250
252
function force_hardhat_compiler_settings
You can’t perform that action at this time.
0 commit comments