Skip to content

Commit 22be859

Browse files
authored
Merge pull request #7222 from ethereum/fixVersionPruning
Remove version in errors for release build.
2 parents c082d0b + 4596a76 commit 22be859

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/cmdlineTests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ function test_solc_behaviour()
143143
if [[ "$solc_args" == *"--standard-json"* ]]
144144
then
145145
sed -i -e 's/{[^{]*Warning: This is a pre-release compiler version[^}]*},\{0,1\}//' "$stdout_path"
146+
sed -i.bak -E -e 's/ Consider adding \\"pragma solidity \^[0-9.]*;\\"//g' "$stdout_path"
146147
sed -i -e 's/"errors":\[\],\{0,1\}//' "$stdout_path"
147148
# Remove explicit bytecode and references to bytecode offsets
148149
sed -i.bak -E -e 's/\"object\":\"[a-f0-9]+\"/\"object\":\"bytecode removed\"/g' "$stdout_path"

0 commit comments

Comments
 (0)