diff --git a/scripts/common_cmdline.sh b/scripts/common_cmdline.sh index 1b40f50d5..5e32a76dc 100644 --- a/scripts/common_cmdline.sh +++ b/scripts/common_cmdline.sh @@ -104,6 +104,45 @@ function compileFull fi } +function singleContractOutputViaStandardJSON +{ + (( $# == 4 )) || assertFail + local language="$1" + local selected_output="$2" + local extra_settings="$3" + local input_file="$4" + [[ $selected_output != "*" ]] || assertFail + + json_output=$( + "$SOLC" --standard-json --allow-paths "$(basename "$input_file")" - <