eth/api: fixed GetCompilers when there is no error creating Solc

This commit is contained in:
Rémy Roy 2016-05-24 16:44:33 -04:00
parent 5bcdbb1ce4
commit f86ea9aad5

View File

@ -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
}