aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-08-07 20:38:02 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-08-07 20:38:02 +0800
commitdcb23bc3abf239766d57fd9900ee3f0b0757443b (patch)
treea0f85c9a2eb976d3b85dbd2cfb83ac940c60bf0d
parentd7580f21f65beaf896bfc004cf13d28ed87f2ae3 (diff)
parentb6c5b3b4a77eb2e725cf2e9b257fff7b2861e95e (diff)
downloadgo-tangerine-dcb23bc3abf239766d57fd9900ee3f0b0757443b.tar.gz
go-tangerine-dcb23bc3abf239766d57fd9900ee3f0b0757443b.tar.zst
go-tangerine-dcb23bc3abf239766d57fd9900ee3f0b0757443b.zip
Merge pull request #1615 from obscuren/contract-addr-fix
xeth: fixed contract addr check
-rw-r--r--xeth/xeth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 372068c14..f447a1ac3 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -894,7 +894,7 @@ func (self *XEth) Transact(fromStr, toStr, nonceStr, valueStr, gasStr, gasPriceS
return "", err
}
- if !isAddress(toStr) {
+ if len(toStr) > 0 && toStr != "0x" && !isAddress(toStr) {
return "", errors.New("Invalid address")
}