diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-05-25 15:48:51 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-05-25 15:48:51 +0800 |
commit | ee36057dd5408ed6c3a1cb96e5086f803a8e953e (patch) | |
tree | 9ab1c0d805b376970d3bc874e7de7031c072adf5 | |
parent | a476aabf1a2ea10a6f8a3136899f912660ba26f5 (diff) | |
parent | f86ea9aad5b14051d5d311591148387b2e6da725 (diff) | |
download | go-tangerine-ee36057dd5408ed6c3a1cb96e5086f803a8e953e.tar go-tangerine-ee36057dd5408ed6c3a1cb96e5086f803a8e953e.tar.gz go-tangerine-ee36057dd5408ed6c3a1cb96e5086f803a8e953e.tar.bz2 go-tangerine-ee36057dd5408ed6c3a1cb96e5086f803a8e953e.tar.lz go-tangerine-ee36057dd5408ed6c3a1cb96e5086f803a8e953e.tar.xz 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.go | 2 |
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 } |