mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11166 from ethereum/cmdLineTestsDevVersionFix
This commit is contained in:
commit
d75a132f33
@ -174,7 +174,7 @@ If you want to use string parameters or other types, you need to convert them to
|
|||||||
::
|
::
|
||||||
|
|
||||||
// SPDX-License-Identifier: GPL-3.0
|
// SPDX-License-Identifier: GPL-3.0
|
||||||
pragma solidity >0.8.3;
|
pragma solidity ^0.8.4;
|
||||||
|
|
||||||
contract C {
|
contract C {
|
||||||
bytes s = "Storage";
|
bytes s = "Storage";
|
||||||
|
@ -352,6 +352,7 @@ SOLTMPDIR=$(mktemp -d)
|
|||||||
set -e
|
set -e
|
||||||
cd "$SOLTMPDIR"
|
cd "$SOLTMPDIR"
|
||||||
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/docs/ docs
|
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/docs/ docs
|
||||||
|
developmentVersion=$("$REPO_ROOT/scripts/get_version.sh")
|
||||||
|
|
||||||
for f in *.sol
|
for f in *.sol
|
||||||
do
|
do
|
||||||
@ -378,6 +379,10 @@ SOLTMPDIR=$(mktemp -d)
|
|||||||
then
|
then
|
||||||
opts+=(-o)
|
opts+=(-o)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Disable the version pragma in code snippets that only work with the current development version.
|
||||||
|
# It's necessary because x.y.z won't match `^x.y.z` or `>=x.y.z` pragmas until it's officially released.
|
||||||
|
sed -i.bak -E -e 's/pragma[[:space:]]+solidity[[:space:]]*(\^|>=)[[:space:]]*'"$developmentVersion"'/pragma solidity >0.0.1/' "$f"
|
||||||
compileFull "${opts[@]}" "$SOLTMPDIR/$f"
|
compileFull "${opts[@]}" "$SOLTMPDIR/$f"
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user