Commit ee36057d authored by Jeffrey Wilcke's avatar Jeffrey Wilcke

Merge pull request #2612 from remyroy/fix-eth-getCompilers

eth/api: fixed GetCompilers when there is no error creating Solc
parents a476aabf f86ea9aa
...@@ -113,7 +113,7 @@ func (s *PublicEthereumAPI) GasPrice() *big.Int { ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment