mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
force_hardhat_unlimited_contract_size: Initialize 'hardhat' network if is not explicitly configured
This commit is contained in:
parent
e79a25ed7f
commit
8f804333fe
@ -239,12 +239,14 @@ function force_hardhat_unlimited_contract_size
|
||||
|
||||
if [[ $config_file == *\.js ]]; then
|
||||
[[ $config_var_name == "" ]] || assertFail
|
||||
echo "module.exports.networks.hardhat.allowUnlimitedContractSize = true" >> "$config_file"
|
||||
echo "module.exports.networks.hardhat = module.exports.networks.hardhat || {allowUnlimitedContractSize: undefined}"
|
||||
echo "module.exports.networks.hardhat.allowUnlimitedContractSize = true"
|
||||
else
|
||||
[[ $config_file == *\.ts ]] || assertFail
|
||||
[[ $config_var_name != "" ]] || assertFail
|
||||
echo "${config_var_name}.networks!.hardhat!.allowUnlimitedContractSize = true" >> "$config_file"
|
||||
fi
|
||||
echo "${config_var_name}.networks!.hardhat ??= {allowUnlimitedContractSize: undefined};"
|
||||
echo "${config_var_name}.networks!.hardhat!.allowUnlimitedContractSize = true"
|
||||
fi >> "$config_file"
|
||||
}
|
||||
|
||||
function force_hardhat_compiler_settings
|
||||
|
Loading…
Reference in New Issue
Block a user