From 6ed3765941c4418881a6842f58ea1123a9c54738 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 6 Nov 2018 15:14:44 +0100 Subject: Fix bytecode tests for solc-js --- scripts/bytecodecompare/storebytecode.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/bytecodecompare/storebytecode.sh b/scripts/bytecodecompare/storebytecode.sh index 89a669bd..ccf6e60e 100755 --- a/scripts/bytecodecompare/storebytecode.sh +++ b/scripts/bytecodecompare/storebytecode.sh @@ -41,14 +41,15 @@ TMPDIR=$(mktemp -d) if [[ "$SOLC_EMSCRIPTEN" = "On" ]] then # npm install solc - git clone --depth 1 https://github.com/ethereum/solc-js.git solc - cp "$REPO_ROOT/build/libsolc/soljson.js" . + git clone --depth 1 https://github.com/ethereum/solc-js.git solc-js + ( cd solc-js; npm install ) + cp "$REPO_ROOT/build/libsolc/soljson.js" solc-js/ cat > solc <