aboutsummaryrefslogtreecommitdiffstats
path: root/test/externalTests.sh
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-07-28 18:55:31 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-09-26 02:03:24 +0800
commite9b2c650ce1f08386a9eb4eda217b5be8917cb21 (patch)
tree9273080061b9ceb845da8fbb58a7512883761e3f /test/externalTests.sh
parentb92be02bf0da20fe2ca7c6de48deec000c61fd09 (diff)
downloaddexon-solidity-e9b2c650ce1f08386a9eb4eda217b5be8917cb21.tar
dexon-solidity-e9b2c650ce1f08386a9eb4eda217b5be8917cb21.tar.gz
dexon-solidity-e9b2c650ce1f08386a9eb4eda217b5be8917cb21.tar.bz2
dexon-solidity-e9b2c650ce1f08386a9eb4eda217b5be8917cb21.tar.lz
dexon-solidity-e9b2c650ce1f08386a9eb4eda217b5be8917cb21.tar.xz
dexon-solidity-e9b2c650ce1f08386a9eb4eda217b5be8917cb21.tar.zst
dexon-solidity-e9b2c650ce1f08386a9eb4eda217b5be8917cb21.zip
Turn on patch to replace version pragmas for Zeppelin
An also replace every single one of them with ^0
Diffstat (limited to 'test/externalTests.sh')
-rwxr-xr-xtest/externalTests.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/externalTests.sh b/test/externalTests.sh
index f2839083..17768875 100755
--- a/test/externalTests.sh
+++ b/test/externalTests.sh
@@ -56,10 +56,10 @@ function test_truffle
echo "Current commit hash: `git rev-parse HEAD`"
npm install
find . -name soljson.js -exec cp "$SOLJSON" {} \;
- if [ "$name" == "Gnosis" ]; then
+ if [ "$name" == "Zeppelin" -o "$name" == "Gnosis" ]; then
echo "Replaced fixed-version pragmas..."
# Replace fixed-version pragmas in Gnosis (part of Consensys best practice)
- find contracts test -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity 0/pragma solidity ^0/'
+ find contracts test -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity [^;]+/pragma solidity ^0/'
fi
assertsol="node_modules/truffle/build/Assert.sol"
if [ -f "$assertsol" ]