mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
externalTests: Make force_hardhat_unlimited_contract_size work with Typescript < 4.0
- The `??=` operator was added in Typescript 4. `??` Was already available on 3.7 so we can use it instead to get projects like Uniswap work.
This commit is contained in:
parent
a7cbb41bf9
commit
d3cce85a8d
@ -255,7 +255,7 @@ function force_hardhat_unlimited_contract_size
|
||||
else
|
||||
[[ $config_file == *\.ts ]] || assertFail
|
||||
[[ $config_var_name != "" ]] || assertFail
|
||||
echo "${config_var_name}.networks!.hardhat ??= {allowUnlimitedContractSize: undefined};"
|
||||
echo "${config_var_name}.networks!.hardhat = ${config_var_name}.networks!.hardhat ?? {allowUnlimitedContractSize: undefined};"
|
||||
echo "${config_var_name}.networks!.hardhat!.allowUnlimitedContractSize = true"
|
||||
fi >> "$config_file"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user