From f46e333f9a0b4be44c192adddffe04bd64f8b383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Tue, 25 Jan 2022 17:12:35 +0100 Subject: [PATCH] fixup! bytecode compare: Stop depending on solc-js internal structure and install it via npm from a local dir instead --- scripts/bytecodecompare/storebytecode.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/bytecodecompare/storebytecode.sh b/scripts/bytecodecompare/storebytecode.sh index 137ed753c..1c300662b 100755 --- a/scripts/bytecodecompare/storebytecode.sh +++ b/scripts/bytecodecompare/storebytecode.sh @@ -42,11 +42,18 @@ TMPDIR=$(mktemp -d) if [[ "$SOLC_EMSCRIPTEN" = "On" ]] then + echo "Installing solc-js..." # npm install solc git clone --depth 1 https://github.com/ethereum/solc-js.git solc-js cp "$REPO_ROOT/emscripten_build/libsolc/soljson.js" solc-js/ + pushd solc-js/ + npm install + npm run build + popd + cp "$REPO_ROOT/scripts/bytecodecompare/prepare_report.js" . - ( npm install solc-js/ ) + npm install solc-js/ + echo "Running the compiler..." # shellcheck disable=SC2035 ./prepare_report.js *.sol > report.txt