Skip to content

Commit

Permalink
fixup! externalTests: Benchmark reports
Browse files Browse the repository at this point in the history
  • Loading branch information
cameel committed Jan 19, 2022
1 parent 5745032 commit 4c76add
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/externalTests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,13 @@ function force_hardhat_compiler_settings
if [[ $config_file == *\.js ]]; then
[[ $config_var_name == "" ]] || assertFail
echo "require('hardhat-gas-reporter');"
echo "module.exports['gasReporter'] = ${gas_reporter_settings}"
echo "module.exports['solidity'] = ${compiler_settings}"
echo "module.exports.gasReporter = ${gas_reporter_settings};"
echo "module.exports.solidity = ${compiler_settings};"
else
[[ $config_file == *\.ts ]] || assertFail
[[ $config_var_name != "" ]] || assertFail
echo "${config_var_name}.gasReporter = {compilers: [${gas_reporter_settings}]}"
echo "${config_var_name}.solidity = {compilers: [${compiler_settings}]}"
echo "${config_var_name}.gasReporter = ${gas_reporter_settings};"
echo "${config_var_name}.solidity = {compilers: [${compiler_settings}]};"
fi >> "$config_file"
}

Expand Down

0 comments on commit 4c76add

Please sign in to comment.