Override Truffle version in Gnosis safe-contracts.

This commit is contained in:
Erik Kundt 2019-11-29 10:19:17 +01:00 committed by Daniel Kirchner
parent f13fa7ed82
commit 1fbcf7bd8b
2 changed files with 9 additions and 0 deletions

View File

@ -83,6 +83,13 @@ function download_project
echo "Current commit hash: `git rev-parse HEAD`"
}
function force_truffle_version
{
local repo="$1"
sed -i 's/"truffle":\s*".*"/"truffle": "^5.0.42"/g' package.json
}
function truffle_setup
{
local repo="$1"

View File

@ -34,6 +34,8 @@ function gnosis_safe_test
CONFIG="truffle.js"
truffle_setup https://github.com/erak/safe-contracts.git development_060
force_truffle_version
run_install install_fn
replace_libsolc_call