diff options
author | Rémy Roy <remyroy@remyroy.com> | 2016-05-25 04:44:33 +0800 |
---|---|---|
committer | Rémy Roy <remyroy@remyroy.com> | 2016-05-25 04:44:33 +0800 |
commit | f86ea9aad5b14051d5d311591148387b2e6da725 (patch) | |
tree | 59030b84b0c7d1eafef8cc79b54ee1c13e446adc | |
parent | 5bcdbb1ce4ac576cab778e9772fabdcc7cbfbb5f (diff) | |
download | dexon-f86ea9aad5b14051d5d311591148387b2e6da725.tar.gz dexon-f86ea9aad5b14051d5d311591148387b2e6da725.tar.zst dexon-f86ea9aad5b14051d5d311591148387b2e6da725.zip |
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 } |