File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,26 @@ function force_hardhat_compiler_binary
227
227
hardhat_solc_build_subtask " $SOLCVERSION_SHORT " " $SOLCVERSION " " $binary_type " " $solc_path " " $language " >> " $config_file "
228
228
}
229
229
230
+ function force_hardhat_unlimited_contract_size
231
+ {
232
+ local config_file=" $1 "
233
+ local config_var_name=" $2 "
234
+
235
+ printLog " Configuring Hardhat..."
236
+ echo " -------------------------------------"
237
+ echo " Allow unlimited contract size: true"
238
+ echo " -------------------------------------"
239
+
240
+ if [[ $config_file == * \. js ]]; then
241
+ [[ $config_var_name == " " ]] || assertFail
242
+ echo " module.exports.networks.hardhat.allowUnlimitedContractSize = true" >> " $config_file "
243
+ else
244
+ [[ $config_file == * \. ts ]] || assertFail
245
+ [[ $config_var_name != " " ]] || assertFail
246
+ echo " ${config_var_name} .networks!.hardhat!.allowUnlimitedContractSize = true" >> " $config_file "
247
+ fi
248
+ }
249
+
230
250
function force_hardhat_compiler_settings
231
251
{
232
252
local config_file=" $1 "
You can’t perform that action at this time.
0 commit comments