From 5aed3c4bbb04f0d43c6467d64e9a5a8cfb963dd8 Mon Sep 17 00:00:00 2001 From: r0qs Date: Wed, 6 Mar 2024 15:11:25 +0100 Subject: [PATCH] Fix hardhat version to 2.20.0 on uniswap and perpetual_pools external tests --- test/externalTests/perpetual-pools.sh | 5 +++++ test/externalTests/uniswap.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/test/externalTests/perpetual-pools.sh b/test/externalTests/perpetual-pools.sh index 31748a40ca2a..1d7bb8f33b3e 100755 --- a/test/externalTests/perpetual-pools.sh +++ b/test/externalTests/perpetual-pools.sh @@ -69,7 +69,12 @@ function perpetual_pools_test force_hardhat_compiler_binary "$config_file" "$BINARY_TYPE" "$BINARY_PATH" force_hardhat_compiler_settings "$config_file" "$(first_word "$SELECTED_PRESETS")" "$config_var" force_hardhat_unlimited_contract_size "$config_file" "$config_var" + yarn install + # We set hardhat version to 2.20.0 since version 2.21.0 has issues with solidity-coverage plugin + # that often causes out-of-memory errors. + # See hardhat note about the issue here: https://github.com/NomicFoundation/hardhat/releases/tag/hardhat@2.21.0 + yarn add hardhat@2.20.0 replace_version_pragmas diff --git a/test/externalTests/uniswap.sh b/test/externalTests/uniswap.sh index bf5f828987eb..04f27ab3f77f 100755 --- a/test/externalTests/uniswap.sh +++ b/test/externalTests/uniswap.sh @@ -90,6 +90,11 @@ function uniswap_test # TODO: Remove when https://github.com/ethers-io/ethers.js/discussions/2849 is resolved. yarn add ethers@5.6.1 + # We set hardhat version to 2.20.0 since version 2.21.0 has issues with solidity-coverage plugin + # that often causes out-of-memory errors. + # See hardhat note about the issue here: https://github.com/NomicFoundation/hardhat/releases/tag/hardhat@2.21.0 + yarn add hardhat@2.20.0 + replace_version_pragmas for preset in $SELECTED_PRESETS; do