externalTests: Fix optimizer level 2 to make it actually run without Yul optimizer

This commit is contained in:
Kamil Śliwak 2021-12-10 15:34:07 +01:00
parent b14a674ed4
commit 8ada7db7e9
4 changed files with 5 additions and 2 deletions

View File

@ -35,6 +35,7 @@ function colony_test
local repo="https://github.com/solidity-external-tests/colonyNetwork.git"
local branch=develop_080
local config_file="truffle.js"
# On levels 1 and 2 it compiles but tests run out of gas
local min_optimizer_level=3
local max_optimizer_level=3

View File

@ -245,7 +245,7 @@ function optimizer_settings_for_level
case "$level" in
1) echo "{enabled: false}" ;;
2) echo "{enabled: true}" ;;
2) echo "{enabled: true, details: {yul: false}}" ;;
3) echo "{enabled: true, details: {yul: true}}" ;;
*)
printError "Optimizer level not found. Please define OPTIMIZER_LEVEL=[1, 2, 3]"

View File

@ -36,6 +36,7 @@ function gnosis_safe_test
local repo="https://github.com/solidity-external-tests/safe-contracts.git"
local branch=v2_080
local config_file="truffle-config.js"
# level 1: "Error: while migrating GnosisSafe: Returned error: base fee exceeds gas limit"
local min_optimizer_level=2
local max_optimizer_level=3

View File

@ -35,7 +35,8 @@ function gnosis_safe_test
local repo="https://github.com/solidity-external-tests/safe-contracts.git"
local branch=development_080
local config_file="truffle-config.js"
local min_optimizer_level=2
# levels 1 and 2: "Stack too deep" error
local min_optimizer_level=3
local max_optimizer_level=3
local selected_optimizer_levels