aboutsummaryrefslogtreecommitdiffstats
path: root/eth/api.go
diff options
context:
space:
mode:
authorRémy Roy <remyroy@remyroy.com>2016-05-25 04:44:33 +0800
committerRémy Roy <remyroy@remyroy.com>2016-05-25 04:44:33 +0800
commitf86ea9aad5b14051d5d311591148387b2e6da725 (patch)
tree59030b84b0c7d1eafef8cc79b54ee1c13e446adc /eth/api.go
parent5bcdbb1ce4ac576cab778e9772fabdcc7cbfbb5f (diff)
downloaddexon-f86ea9aad5b14051d5d311591148387b2e6da725.tar
dexon-f86ea9aad5b14051d5d311591148387b2e6da725.tar.gz
dexon-f86ea9aad5b14051d5d311591148387b2e6da725.tar.bz2
dexon-f86ea9aad5b14051d5d311591148387b2e6da725.tar.lz
dexon-f86ea9aad5b14051d5d311591148387b2e6da725.tar.xz
dexon-f86ea9aad5b14051d5d311591148387b2e6da725.tar.zst
dexon-f86ea9aad5b14051d5d311591148387b2e6da725.zip
eth/api: fixed GetCompilers when there is no error creating Solc
Diffstat (limited to 'eth/api.go')
-rw-r--r--eth/api.go2
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
}