Silence version check grep and up the node heap limit

This commit is contained in:
Nikola Matic 2023-01-05 13:10:42 +01:00
parent e6b579fa40
commit 5ecf3075fb
2 changed files with 5 additions and 3 deletions

View File

@ -345,7 +345,7 @@ function truffle_verify_compiler_version
local full_solc_version="$2" local full_solc_version="$2"
printLog "Verify that the correct version (${solc_version}/${full_solc_version}) of the compiler was used to compile the contracts..." printLog "Verify that the correct version (${solc_version}/${full_solc_version}) of the compiler was used to compile the contracts..."
grep "$full_solc_version" --with-filename --recursive build/contracts || fail "Wrong compiler version detected." grep "$full_solc_version" --recursive --quiet build/contracts || fail "Wrong compiler version detected."
} }
function hardhat_verify_compiler_version function hardhat_verify_compiler_version
@ -357,8 +357,8 @@ function hardhat_verify_compiler_version
local build_info_files local build_info_files
build_info_files=$(find . -path '*artifacts/build-info/*.json') build_info_files=$(find . -path '*artifacts/build-info/*.json')
for build_info_file in $build_info_files; do for build_info_file in $build_info_files; do
grep '"solcVersion":[[:blank:]]*"'"${solc_version}"'"' --with-filename "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}." grep '"solcVersion":[[:blank:]]*"'"${solc_version}"'"' --quiet "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}."
grep '"solcLongVersion":[[:blank:]]*"'"${full_solc_version}"'"' --with-filename "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}." grep '"solcLongVersion":[[:blank:]]*"'"${full_solc_version}"'"' --quiet "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}."
done done
} }

View File

@ -23,6 +23,8 @@
# shellcheck disable=SC2016 # shellcheck disable=SC2016
set -e set -e
# Temporary(?) fix to up the heap limit for node in order to prevent 'out of heap errors'
export NODE_OPTIONS="--max-old-space-size=4096"
source scripts/common.sh source scripts/common.sh
source test/externalTests/common.sh source test/externalTests/common.sh