force_solc_settings: Stop using the outdated 'solc' key for compiler settings in truffle-config.js

- Settings were moved under 'compilers' in Truffle 5.0.0 and none of the projects use older Truffle.
This commit is contained in:
Kamil Śliwak 2020-12-08 14:55:39 +01:00
parent a64a2fa186
commit 609f1746c9

View File

@ -158,7 +158,6 @@ function force_solc_settings
# 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"
}