You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/externalTests/perpetual-pools.sh
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ function perpetual_pools_test
47
47
"${compile_only_presets[@]}"
48
48
#ir-no-optimize # Compilation fails with "YulException: Variable var_amount_527 is 9 slot(s) too deep inside the stack."
49
49
#ir-optimize-evm-only # Compilation fails with "YulException: Variable var_amount_527 is 9 slot(s) too deep inside the stack."
50
-
#ir-optimize-evm+yul # Compilation fails with "YulException: Variable expr_mpos is 1 too deep in the stack"
50
+
ir-optimize-evm+yul
51
51
legacy-no-optimize
52
52
legacy-optimize-evm-only
53
53
legacy-optimize-evm+yul
@@ -59,6 +59,12 @@ function perpetual_pools_test
59
59
setup_solc "$DIR""$BINARY_TYPE""$BINARY_PATH"
60
60
download_project "$repo""$ref_type""$ref""$DIR"
61
61
62
+
# Disable tests that won't pass on the ir presets due to Hardhat heuristics. Note that this also disables
63
+
# them for other presets but that's fine - we want same code run for benchmarks to be comparable.
64
+
# TODO: Remove this when Hardhat adjusts heuristics for IR (https://github.com/nomiclabs/hardhat/issues/2115).
65
+
sed -i 's|\(it\)\(("Should not allow commits that are too large"\)|\1.skip\2|g' test/PoolCommitter/commit.spec.ts
66
+
sed -i 's|\(it\)\(("Should not allow for too many commitments (that bring amount over a user'\''s balance)"\)|\1.skip\2|g' test/PoolCommitter/commit.spec.ts
0 commit comments