bytecode compare: Stop depending on solc-js internal structure and install it via npm from a local dir instead

This commit is contained in:
Kamil Śliwak 2022-01-25 15:29:08 +01:00
parent 2725788c24
commit 1cd4ffc355
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
const process = require('process')
const fs = require('fs')
const compiler = require('./solc-js/wrapper.js')(require('./solc-js/soljson.js'))
const compiler = require('solc')
function loadSource(sourceFileName, stripSMTPragmas)

View File

@ -44,9 +44,9 @@ TMPDIR=$(mktemp -d)
then
# npm install solc
git clone --depth 1 https://github.com/ethereum/solc-js.git solc-js
( cd solc-js; npm install )
cp "$REPO_ROOT/emscripten_build/libsolc/soljson.js" solc-js/
cp "$REPO_ROOT/scripts/bytecodecompare/prepare_report.js" .
( npm install solc-js/ )
echo "Running the compiler..."
# shellcheck disable=SC2035
./prepare_report.js *.sol > report.txt