mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
bytecode compare: Stop depending on solc-js internal structure and install it via npm from a local dir instead
This commit is contained in:
parent
2725788c24
commit
1cd4ffc355
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user