aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")
}