Merge pull request #2612 from remyroy/fix-eth-getCompilers
eth/api: fixed GetCompilers when there is no error creating Solc
This commit is contained in:
commit
ee36057dd5
@ -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…
Reference in New Issue
Block a user