File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,8 @@ function trident_test
58
58
legacy-optimize-evm+yul
59
59
)
60
60
61
- local selected_optimizer_presets
62
- selected_optimizer_presets=$( circleci_select_steps_multiarg " ${settings_presets[@]} " )
63
- print_optimizer_presets_or_exit " $selected_optimizer_presets "
61
+ [[ $SELECTED_PRESETS != " " ]] || SELECTED_PRESETS=$( circleci_select_steps_multiarg " ${settings_presets[@]} " )
62
+ print_presets_or_exit " $SELECTED_PRESETS "
64
63
65
64
setup_solc " $DIR " " $BINARY_TYPE " " $BINARY_PATH "
66
65
download_project " $repo " " $ref_type " " $ref " " $DIR "
@@ -71,7 +70,7 @@ function trident_test
71
70
72
71
neutralize_package_json_hooks
73
72
force_hardhat_compiler_binary " $config_file " " $BINARY_TYPE " " $BINARY_PATH "
74
- force_hardhat_compiler_settings " $config_file " " $( first_word " $selected_optimizer_presets " ) " " $config_var "
73
+ force_hardhat_compiler_settings " $config_file " " $( first_word " $SELECTED_PRESETS " ) " " $config_var "
75
74
yarn install
76
75
77
76
replace_version_pragmas
@@ -89,7 +88,7 @@ function trident_test
89
88
# version check. It's not used by tests so we can remove it.
90
89
rm -r node_modules/@sushiswap/core/
91
90
92
- for preset in $selected_optimizer_presets ; do
91
+ for preset in $SELECTED_PRESETS ; do
93
92
hardhat_run_test " $config_file " " $preset " " ${compile_only_presets[*]} " compile_fn test_fn " $config_var "
94
93
done
95
94
}
You can’t perform that action at this time.
0 commit comments