Workaround gp2 and prb-math external tests

This commit is contained in:
r0qs 2023-05-16 16:13:51 +02:00
parent 1250ee778d
commit af74ab69c9
No known key found for this signature in database
GPG Key ID: 61503DBA6667276C
2 changed files with 16 additions and 0 deletions

View File

@ -69,6 +69,14 @@ function gp2_test
force_hardhat_unlimited_contract_size "$config_file" "$config_var"
yarn
# Workaround for error caused by the last release of hardhat-waffle@2.0.6 that bumps ethereum-waffle
# to version 4.0.10 and breaks gp2 build with the following error:
#
# Cannot find module 'ethereum-waffle/dist/cjs/src/deployContract'
#
# See: https://github.com/NomicFoundation/hardhat-waffle/commit/83ee9cb36ee59d0bedacbbd00043f030af104ad0
yarn add '@nomiclabs/hardhat-waffle@2.0.5'
# Some dependencies come with pre-built artifacts. We want to build from scratch.
rm -r node_modules/@gnosis.pm/safe-contracts/build/

View File

@ -96,6 +96,14 @@ function prb_math_test
yarn install --no-lock-file
yarn add hardhat-gas-reporter
# Workaround for error caused by the last release of hardhat-waffle@2.0.6 that bumps ethereum-waffle
# to version 4.0.10 and breaks prb-math build with the following error:
#
# Cannot find module 'ethereum-waffle/dist/cjs/src/deployContract'
#
# See: https://github.com/NomicFoundation/hardhat-waffle/commit/83ee9cb36ee59d0bedacbbd00043f030af104ad0
yarn add '@nomiclabs/hardhat-waffle@2.0.5'
replace_version_pragmas
for preset in $SELECTED_PRESETS; do