mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
externalTests: Fix optimizer level 2 to make it actually run without Yul optimizer
This commit is contained in:
parent
b14a674ed4
commit
8ada7db7e9
@ -35,6 +35,7 @@ function colony_test
|
|||||||
local repo="https://github.com/solidity-external-tests/colonyNetwork.git"
|
local repo="https://github.com/solidity-external-tests/colonyNetwork.git"
|
||||||
local branch=develop_080
|
local branch=develop_080
|
||||||
local config_file="truffle.js"
|
local config_file="truffle.js"
|
||||||
|
# On levels 1 and 2 it compiles but tests run out of gas
|
||||||
local min_optimizer_level=3
|
local min_optimizer_level=3
|
||||||
local max_optimizer_level=3
|
local max_optimizer_level=3
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ function optimizer_settings_for_level
|
|||||||
|
|
||||||
case "$level" in
|
case "$level" in
|
||||||
1) echo "{enabled: false}" ;;
|
1) echo "{enabled: false}" ;;
|
||||||
2) echo "{enabled: true}" ;;
|
2) echo "{enabled: true, details: {yul: false}}" ;;
|
||||||
3) echo "{enabled: true, details: {yul: true}}" ;;
|
3) echo "{enabled: true, details: {yul: true}}" ;;
|
||||||
*)
|
*)
|
||||||
printError "Optimizer level not found. Please define OPTIMIZER_LEVEL=[1, 2, 3]"
|
printError "Optimizer level not found. Please define OPTIMIZER_LEVEL=[1, 2, 3]"
|
||||||
|
@ -36,6 +36,7 @@ function gnosis_safe_test
|
|||||||
local repo="https://github.com/solidity-external-tests/safe-contracts.git"
|
local repo="https://github.com/solidity-external-tests/safe-contracts.git"
|
||||||
local branch=v2_080
|
local branch=v2_080
|
||||||
local config_file="truffle-config.js"
|
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 min_optimizer_level=2
|
||||||
local max_optimizer_level=3
|
local max_optimizer_level=3
|
||||||
|
|
||||||
|
@ -35,7 +35,8 @@ function gnosis_safe_test
|
|||||||
local repo="https://github.com/solidity-external-tests/safe-contracts.git"
|
local repo="https://github.com/solidity-external-tests/safe-contracts.git"
|
||||||
local branch=development_080
|
local branch=development_080
|
||||||
local config_file="truffle-config.js"
|
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 max_optimizer_level=3
|
||||||
|
|
||||||
local selected_optimizer_levels
|
local selected_optimizer_levels
|
||||||
|
Loading…
Reference in New Issue
Block a user