From 4596a761c4b734b523d47f4cd0789f577b87416b Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 12 Aug 2019 17:23:38 +0200 Subject: [PATCH] Remove version in errors for release build. --- test/cmdlineTests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh index acda5ba04..ba0b1cf8b 100755 --- a/test/cmdlineTests.sh +++ b/test/cmdlineTests.sh @@ -143,6 +143,7 @@ function test_solc_behaviour() if [[ "$solc_args" == *"--standard-json"* ]] then sed -i -e 's/{[^{]*Warning: This is a pre-release compiler version[^}]*},\{0,1\}//' "$stdout_path" + sed -i.bak -E -e 's/ Consider adding \\"pragma solidity \^[0-9.]*;\\"//g' "$stdout_path" sed -i -e 's/"errors":\[\],\{0,1\}//' "$stdout_path" # Remove explicit bytecode and references to bytecode offsets sed -i.bak -E -e 's/\"object\":\"[a-f0-9]+\"/\"object\":\"bytecode removed\"/g' "$stdout_path"