[release/1.4.6] eth/api: fixed GetCompilers when there is no error creating Solc

(cherry picked from commit f86ea9aad5)
pull/2663/head
Rémy Roy 9 years ago committed by Péter Szilágyi
parent ab522d3bc7
commit 7a4073a758
  1. 2
      eth/api.go

@ -113,7 +113,7 @@ func (s *PublicEthereumAPI) GasPrice() *big.Int {
// GetCompilers returns the collection of available smart contract compilers // GetCompilers returns the collection of available smart contract compilers
func (s *PublicEthereumAPI) GetCompilers() ([]string, error) { func (s *PublicEthereumAPI) GetCompilers() ([]string, error) {
solc, err := s.e.Solc() solc, err := s.e.Solc()
if err != nil && solc != nil { if err == nil && solc != nil {
return []string{"Solidity"}, nil return []string{"Solidity"}, nil
} }

Loading…
Cancel
Save