From 39d56ee9971891feca7f8336e148cd22136f7cb2 Mon Sep 17 00:00:00 2001 From: Alexander Arlt Date: Mon, 14 Mar 2022 10:22:25 -0500 Subject: [PATCH] scripts/ImportExportTest.sh: fix direct export via --asm-json. --- scripts/ImportExportTest.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ImportExportTest.sh b/scripts/ImportExportTest.sh index e2b5b3961..d0f0c5a33 100755 --- a/scripts/ImportExportTest.sh +++ b/scripts/ImportExportTest.sh @@ -145,7 +145,8 @@ function testImportExportEquivalence { done done - if ! $SOLC --combined-json asm --pretty-json --import-asm-json expected.asm > obtained_direct_import_export.json 2> obtained_direct_import_export.error + # direct export via --asm-json, if imported with --import-asm-json. + if ! $SOLC --asm-json --import-asm-json expected.asm | tail -n+4 > obtained_direct_import_export.json 2> obtained_direct_import_export.error then printf "\n" echo "$nth_input_file"