aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémy Roy <remyroy@remyroy.com>2016-05-25 04:44:33 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-06-06 21:21:27 +0800
commit7a4073a75883165834edb7a28b52728581f58170 (patch)
tree3572411239274ccc5222de28bef87879eb5bb7ba
parentab522d3bc75639a871d30ce0e2d1b95681178088 (diff)
downloadgo-tangerine-7a4073a75883165834edb7a28b52728581f58170.tar
go-tangerine-7a4073a75883165834edb7a28b52728581f58170.tar.gz
go-tangerine-7a4073a75883165834edb7a28b52728581f58170.tar.bz2
go-tangerine-7a4073a75883165834edb7a28b52728581f58170.tar.lz
go-tangerine-7a4073a75883165834edb7a28b52728581f58170.tar.xz
go-tangerine-7a4073a75883165834edb7a28b52728581f58170.tar.zst
go-tangerine-7a4073a75883165834edb7a28b52728581f58170.zip
[release/1.4.6] eth/api: fixed GetCompilers when there is no error creating Solc
(cherry picked from commit f86ea9aad5b14051d5d311591148387b2e6da725)
-rw-r--r--eth/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/api.go b/eth/api.go
index d048904f3..f5f942c27 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -113,7 +113,7 @@ func (s *PublicEthereumAPI) GasPrice() *big.Int {
// GetCompilers returns the collection of available smart contract compilers
func (s *PublicEthereumAPI) GetCompilers() ([]string, error) {
solc, err := s.e.Solc()
- if err != nil && solc != nil {
+ if err == nil && solc != nil {
return []string{"Solidity"}, nil
}