Unpin v4-core dependency and neutralize packages

This commit is contained in:
Nikola Matic 2023-01-04 09:48:02 +01:00
parent 2ec6a04b36
commit 17d57da082

View File

@ -69,15 +69,13 @@ function pool_together_test
force_hardhat_compiler_settings "$config_file" "$(first_word "$SELECTED_PRESETS")" "$config_var" force_hardhat_compiler_settings "$config_file" "$(first_word "$SELECTED_PRESETS")" "$config_var"
yarn install yarn install
# TODO: Remove this when https://github.com/pooltogether/v4-core/issues/287 gets fixed.
npm install @pooltogether/pooltogether-rng-contracts@1.4.0
# These come with already compiled artifacts. We want them recompiled with latest compiler. # These come with already compiled artifacts. We want them recompiled with latest compiler.
rm -r node_modules/@pooltogether/yield-source-interface/artifacts/ rm -r node_modules/@pooltogether/yield-source-interface/artifacts/
rm -r node_modules/@pooltogether/uniform-random-number/artifacts/ rm -r node_modules/@pooltogether/uniform-random-number/artifacts/
rm -r node_modules/@pooltogether/owner-manager-contracts/artifacts/ rm -r node_modules/@pooltogether/owner-manager-contracts/artifacts/
replace_version_pragmas replace_version_pragmas
neutralize_packaged_contracts
for preset in $SELECTED_PRESETS; do for preset in $SELECTED_PRESETS; do
hardhat_run_test "$config_file" "$preset" "${compile_only_presets[*]}" compile_fn test_fn "$config_var" hardhat_run_test "$config_file" "$preset" "${compile_only_presets[*]}" compile_fn test_fn "$config_var"