From 225eb8ce9128861cf7a828f1e588263601b14014 Mon Sep 17 00:00:00 2001
From: Robert Martin-Legene <robert@martin-legene.dk>
Date: Wed, 21 Oct 2020 04:14:34 -0300
Subject: [PATCH] Mejorando bin/solc

---
 bin/solc     | 13 ++++---------
 lib/versions |  1 +
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/bin/solc b/bin/solc
index 56dce9c..8146605 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 ce01725..cbe651a 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
-- 
GitLab