Test solc-js with v0.5.0

Reverts part of edd80a98
This commit is contained in:
Alex Beregszaszi 2019-12-06 19:05:57 +01:00
parent ee3a834165
commit b4a260d6e3
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ function setup_solcjs
cd "$dir" cd "$dir"
printLog "Setting up solc-js..." printLog "Setting up solc-js..."
git clone --depth 1 -b master https://github.com/ethereum/solc-js.git solc git clone --depth 1 -b v0.5.0 https://github.com/ethereum/solc-js.git solc
cd solc cd solc
npm install npm install
@ -107,7 +107,7 @@ function force_solc_truffle_modules
if [ -d "$d" ]; then if [ -d "$d" ]; then
cd $d cd $d
rm -rf solc rm -rf solc
git clone --depth 1 -b master https://github.com/ethereum/solc-js.git solc git clone --depth 1 -b v0.5.0 https://github.com/ethereum/solc-js.git solc
cp "$1" solc/soljson.js cp "$1" solc/soljson.js
fi fi
) )

View File

@ -40,7 +40,7 @@ VERSION="$2"
DIR=$(mktemp -d) DIR=$(mktemp -d)
( (
echo "Preparing solc-js (master)..." echo "Preparing solc-js (master)..."
git clone --depth 1 --branch master https://github.com/ethereum/solc-js "$DIR" git clone --depth 1 --branch v0.5.0 https://github.com/ethereum/solc-js "$DIR"
cd "$DIR" cd "$DIR"
# disable "prepublish" script which downloads the latest version # disable "prepublish" script which downloads the latest version
# (we will replace it anyway and it is often incorrectly cached # (we will replace it anyway and it is often incorrectly cached