Skip to content

Commit f46e333

Browse files
cameelekpyron
authored andcommitted
fixup! bytecode compare: Stop depending on solc-js internal structure and install it via npm from a local dir instead
1 parent 4e39513 commit f46e333

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/bytecodecompare/storebytecode.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,18 @@ TMPDIR=$(mktemp -d)
4242

4343
if [[ "$SOLC_EMSCRIPTEN" = "On" ]]
4444
then
45+
echo "Installing solc-js..."
4546
# npm install solc
4647
git clone --depth 1 https://github.com/ethereum/solc-js.git solc-js
4748
cp "$REPO_ROOT/emscripten_build/libsolc/soljson.js" solc-js/
49+
pushd solc-js/
50+
npm install
51+
npm run build
52+
popd
53+
4854
cp "$REPO_ROOT/scripts/bytecodecompare/prepare_report.js" .
49-
( npm install solc-js/ )
55+
npm install solc-js/
56+
5057
echo "Running the compiler..."
5158
# shellcheck disable=SC2035
5259
./prepare_report.js *.sol > report.txt

0 commit comments

Comments
 (0)