Skip to content

Commit bef348a

Browse files
authored
Merge pull request #13027 from ethereum/ethersproject-contracts-update-workaround
Workaround for problems caused by forcing [email protected] in external tests
2 parents c67e8a2 + adf3eaa commit bef348a

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

test/externalTests/gnosis.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function test_fn { npm test; }
3636

3737
function gnosis_safe_test
3838
{
39-
local repo="https://github.com/gnosis/safe-contracts.git"
39+
local repo="https://github.com/safe-global/safe-contracts.git"
4040
local ref_type=branch
4141
local ref=main
4242
local config_file="hardhat.config.ts"
@@ -73,6 +73,11 @@ function gnosis_safe_test
7373
# them for other presets but that's fine - we want same code run for benchmarks to be comparable.
7474
# TODO: Remove this when Hardhat adjusts heuristics for IR (https://github.com/nomiclabs/hardhat/issues/2115).
7575
sed -i "s|\(it\)\(('should not allow to call setup on singleton'\)|\1.skip\2|g" test/core/GnosisSafe.Setup.spec.ts
76+
# TODO: Remove this when https://github.com/NomicFoundation/hardhat/issues/2453 gets fixed.
77+
sed -i 's|\(it\)\(("changes the expected storage slot without touching the most important ones"\)|\1.skip\2|g' test/libraries/SignMessageLib.spec.ts
78+
sed -i "s|\(it\)\(('can be used only via DELEGATECALL opcode'\)|\1.skip\2|g" test/libraries/SignMessageLib.spec.ts
79+
sed -i 's|\(describe\)\(("Upgrade from Safe 1.1.1"\)|\1.skip\2|g' test/migration/UpgradeFromSafe111.spec.ts
80+
sed -i 's|\(describe\)\(("Upgrade from Safe 1.2.0"\)|\1.skip\2|g' test/migration/UpgradeFromSafe120.spec.ts
7681

7782
neutralize_package_lock
7883
neutralize_package_json_hooks
@@ -85,6 +90,10 @@ function gnosis_safe_test
8590
# TODO: Remove when https://github.com/ethers-io/ethers.js/discussions/2849 is resolved.
8691
npm install [email protected]
8792

93+
# Note that [email protected] depends on @ethersproject/[email protected] while the dependency on hardhat-deploy
94+
# pulls @ethersproject/[email protected] (latest). Force 5.6.0 to avoid errors due to having two copies.
95+
npm install @ethersproject/[email protected]
96+
8897
# Hardhat 2.9.5 introduced a bug with handling padded arguments to getStorageAt().
8998
# TODO: Remove when https://github.com/NomicFoundation/hardhat/issues/2709 is fixed.
9099
npm install [email protected]

test/externalTests/perpetual-pools.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ function perpetual_pools_test
6666
force_hardhat_unlimited_contract_size "$config_file" "$config_var"
6767
yarn install
6868

69-
# With ethers.js 5.6.2 many tests for revert messages fail.
70-
# TODO: Remove when https://github.com/ethers-io/ethers.js/discussions/2849 is resolved.
71-
72-
7369
replace_version_pragmas
7470

7571
for preset in $SELECTED_PRESETS; do

0 commit comments

Comments
 (0)