mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12394 from ethereum/make-optimizer-level-2-effective-again-in-ext-tests
Make optimizer level 2 in external tests actually different from level 3
This commit is contained in:
commit
9131475b7c
@ -36,6 +36,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
|
||||
|
||||
|
@ -248,7 +248,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}}" ;;
|
||||
*)
|
||||
fail "Optimizer level not found. Please define OPTIMIZER_LEVEL=[1, 2, 3]"
|
||||
|
@ -35,7 +35,7 @@ function ens_test
|
||||
{
|
||||
local repo="https://github.com/ensdomains/ens.git"
|
||||
local branch=master
|
||||
local config_file="truffle-config.js"
|
||||
local config_file="truffle.js"
|
||||
local min_optimizer_level=1
|
||||
local max_optimizer_level=3
|
||||
|
||||
|
@ -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
|
||||
|
||||
@ -63,4 +64,4 @@ function gnosis_safe_test
|
||||
done
|
||||
}
|
||||
|
||||
external_test Gnosis-Safe gnosis_safe_test
|
||||
external_test Gnosis-Safe-V2 gnosis_safe_test
|
||||
|
@ -36,7 +36,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
|
||||
|
Loading…
Reference in New Issue
Block a user