diff --git a/bin/solc b/bin/solc index 56dce9c052bcbf4d13f2af0b835dae033e8b39b6..8146605e14e043c4d5339b0fb01f0daa73bdb165 100755 --- a/bin/solc +++ b/bin/solc @@ -4,7 +4,6 @@ # See if PATH is set up incorrectly (look for another install of this binary). -set -x mypath=$( realpath $0 ) myname=${mypath##*/} for p in ${PATH//:/ } @@ -17,16 +16,12 @@ do continue fi # we found another one, yay! - exec ${checkfile} "$@" + evmvers=$( grep '^chain-evm-version=' ${BFAHOME:-/home/bfa/bfa}/lib/versions | head -1 ) + exec ${checkfile} ${evmvers/*=/--evm-version=} "$@" exit 1 fi done -# not found .. tell to install it. -set +x -exec >&2 -echo "***********************************" -echo "solc no esta instalado." -echo "Para instalarlo, usa installsolc.sh" -echo "***********************************" +# not found +echo "solc: command not found." >&2 exit 1 diff --git a/lib/versions b/lib/versions index ce017251c911b89719d277f63f8fa2e1134e5180..cbe651a8b27e0b4c56b4b3e96b8f164976828403 100644 --- a/lib/versions +++ b/lib/versions @@ -1,2 +1,3 @@ geth_tag=v1.8.27 solidity_tag=v0.5.0 +chain-evm-version=byzantium