aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-05-25 15:48:51 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-05-25 15:48:51 +0800
commitee36057dd5408ed6c3a1cb96e5086f803a8e953e (patch)
tree9ab1c0d805b376970d3bc874e7de7031c072adf5
parenta476aabf1a2ea10a6f8a3136899f912660ba26f5 (diff)
parentf86ea9aad5b14051d5d311591148387b2e6da725 (diff)
downloadgo-tangerine-ee36057dd5408ed6c3a1cb96e5086f803a8e953e.tar.gz
go-tangerine-ee36057dd5408ed6c3a1cb96e5086f803a8e953e.tar.zst
go-tangerine-ee36057dd5408ed6c3a1cb96e5086f803a8e953e.zip
Merge pull request #2612 from remyroy/fix-eth-getCompilers
eth/api: fixed GetCompilers when there is no error creating Solc
-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
}