mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update version pragma replacement in ext. tests.
This commit is contained in:
parent
15e39f7d65
commit
d470663c25
@ -66,15 +66,14 @@ function setup
|
||||
|
||||
setup_solcjs "$DIR" "$SOLJSON"
|
||||
download_project "$repo" "$branch" "$DIR"
|
||||
|
||||
replace_version_pragmas
|
||||
}
|
||||
|
||||
function replace_version_pragmas
|
||||
{
|
||||
# Replace fixed-version pragmas in Gnosis (part of Consensys best practice)
|
||||
# Replace fixed-version pragmas (part of Consensys best practice).
|
||||
# Include all directories to also cover node dependencies.
|
||||
printLog "Replacing fixed-version pragmas..."
|
||||
find contracts test -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity [\^0-9\.]*/pragma solidity >=0.0/'
|
||||
find . test -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity [\^0-9\.]*/pragma solidity >=0.0/'
|
||||
}
|
||||
|
||||
function replace_libsolc_call
|
||||
@ -187,6 +186,7 @@ function run_test
|
||||
local compile_fn="$1"
|
||||
local test_fn="$2"
|
||||
|
||||
replace_version_pragmas
|
||||
force_solc "$CONFIG" "$DIR" "$SOLJSON"
|
||||
|
||||
printLog "Checking optimizer level..."
|
||||
|
Loading…
Reference in New Issue
Block a user