diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-26 03:04:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 03:04:13 +0800 |
commit | 56eb9dd47fb413f243f89f5010badeccba0fbce9 (patch) | |
tree | 8406ab12c52b9de8669713856198faed10303ec4 /test | |
parent | fc6eee02806ad007992c93cd90f7ce7bdd28556c (diff) | |
parent | e3e9ce53d7c8d5c1228ad7165660c8cb014b0f36 (diff) | |
download | dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar.gz dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar.bz2 dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar.lz dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar.xz dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.tar.zst dexon-solidity-56eb9dd47fb413f243f89f5010badeccba0fbce9.zip |
Merge pull request #4193 from ethereum/050-version
Set version to 0.5.0-develop
Diffstat (limited to 'test')
-rwxr-xr-x | test/cmdlineTests.sh | 2 | ||||
-rw-r--r-- | test/contracts/AuctionRegistrar.cpp | 2 | ||||
-rw-r--r-- | test/contracts/FixedFeeRegistrar.cpp | 2 | ||||
-rw-r--r-- | test/contracts/Wallet.cpp | 2 | ||||
-rwxr-xr-x | test/externalTests.sh | 4 |
5 files changed, 7 insertions, 5 deletions
diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh index f7577cb3..78e45429 100755 --- a/test/cmdlineTests.sh +++ b/test/cmdlineTests.sh @@ -177,6 +177,8 @@ do then echo " - $dir" cd "$dir" + # Replace version pragmas + find . -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity [\^0-9\.]*/pragma solidity >=0.0/' compileFull -w *.sol */*.sol cd .. fi diff --git a/test/contracts/AuctionRegistrar.cpp b/test/contracts/AuctionRegistrar.cpp index 70503605..eb274c09 100644 --- a/test/contracts/AuctionRegistrar.cpp +++ b/test/contracts/AuctionRegistrar.cpp @@ -40,7 +40,7 @@ namespace { static char const* registrarCode = R"DELIMITER( -pragma solidity ^0.4.0; +pragma solidity >=0.4.0 <0.6.0; contract NameRegister { function addr(string memory _name) public view returns (address o_owner); diff --git a/test/contracts/FixedFeeRegistrar.cpp b/test/contracts/FixedFeeRegistrar.cpp index ae921a96..e82f389f 100644 --- a/test/contracts/FixedFeeRegistrar.cpp +++ b/test/contracts/FixedFeeRegistrar.cpp @@ -53,7 +53,7 @@ static char const* registrarCode = R"DELIMITER( // @authors: // Gav Wood <g@ethdev.com> -pragma solidity ^0.4.0; +pragma solidity >=0.4.0 <0.6.0; contract Registrar { event Changed(string indexed name); diff --git a/test/contracts/Wallet.cpp b/test/contracts/Wallet.cpp index e0e3045c..9fe02e46 100644 --- a/test/contracts/Wallet.cpp +++ b/test/contracts/Wallet.cpp @@ -56,7 +56,7 @@ static char const* walletCode = R"DELIMITER( // some number (specified in constructor) of the set of owners (specified in the constructor, modifiable) before the // interior is executed. -pragma solidity ^0.4.0; +pragma solidity >=0.4.0 <0.6.0; contract multiowned { diff --git a/test/externalTests.sh b/test/externalTests.sh index f2839083..0168fb03 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 [\^0-9\.]*/pragma solidity >=0.0/' fi assertsol="node_modules/truffle/build/Assert.sol" if [ -f "$assertsol" ] |