Merge pull request #10441 from ethereum/fix-version-pragma-replacement-in-external-tests

Fix command for stripping version pragmas in external tests
This commit is contained in:
Alex Beregszaszi 2020-11-30 15:24:20 +00:00 committed by GitHub
commit 7e7a42c6ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ function replace_version_pragmas
# Replace fixed-version pragmas (part of Consensys best practice).
# Include all directories to also cover node dependencies.
printLog "Replacing fixed-version pragmas..."
find . 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 -e 's/pragma solidity [^;]+;/pragma solidity >=0.0;/'
}
function replace_libsolc_call