From c72686b343a7e62cf7e1f057c92fc4ea496627f9 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Mon, 1 Apr 2019 14:41:27 +0200 Subject: [PATCH] Fixes forced optimizer settings in external tests. --- test/externalTests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/externalTests.sh b/test/externalTests.sh index a6d2ab219..b1772fe15 100755 --- a/test/externalTests.sh +++ b/test/externalTests.sh @@ -150,11 +150,15 @@ function force_solc_settings local evmVersion="$3" printLog "Forcing solc settings..." + echo "-------------------------------------" echo "Config file: $config_file" echo "Optimizer settings: $settings" echo "EVM version: $evmVersion" - echo "" + echo "-------------------------------------" + # Forcing the settings should always work by just overwriting the solc object. Forcing them by using a + # dedicated settings objects should only be the fallback. + echo "module.exports['solc'] = { optimizer: $settings, evmVersion: \"$evmVersion\" };" >> "$config_file" echo "module.exports['compilers']['solc']['settings'] = { optimizer: $settings, evmVersion: \"$evmVersion\" };" >> "$config_file" }