From 1fbcf7bd8bcea246777b031066876ccb217dfeb7 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Fri, 29 Nov 2019 10:19:17 +0100 Subject: [PATCH] Override Truffle version in Gnosis safe-contracts. --- test/externalTests/common.sh | 7 +++++++ test/externalTests/gnosis.sh | 2 ++ 2 files changed, 9 insertions(+) diff --git a/test/externalTests/common.sh b/test/externalTests/common.sh index f3085e27f..25b4a6068 100644 --- a/test/externalTests/common.sh +++ b/test/externalTests/common.sh @@ -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" diff --git a/test/externalTests/gnosis.sh b/test/externalTests/gnosis.sh index d5d8cae58..271164029 100755 --- a/test/externalTests/gnosis.sh +++ b/test/externalTests/gnosis.sh @@ -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