aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/xeth.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-08-07 20:30:45 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-08-07 20:32:06 +0800
commitb6c5b3b4a77eb2e725cf2e9b257fff7b2861e95e (patch)
treea0f85c9a2eb976d3b85dbd2cfb83ac940c60bf0d /xeth/xeth.go
parentd7580f21f65beaf896bfc004cf13d28ed87f2ae3 (diff)
downloadgo-tangerine-b6c5b3b4a77eb2e725cf2e9b257fff7b2861e95e.tar
go-tangerine-b6c5b3b4a77eb2e725cf2e9b257fff7b2861e95e.tar.gz
go-tangerine-b6c5b3b4a77eb2e725cf2e9b257fff7b2861e95e.tar.bz2
go-tangerine-b6c5b3b4a77eb2e725cf2e9b257fff7b2861e95e.tar.lz
go-tangerine-b6c5b3b4a77eb2e725cf2e9b257fff7b2861e95e.tar.xz
go-tangerine-b6c5b3b4a77eb2e725cf2e9b257fff7b2861e95e.tar.zst
go-tangerine-b6c5b3b4a77eb2e725cf2e9b257fff7b2861e95e.zip
xeth: fixed contract addr check
Diffstat (limited to 'xeth/xeth.go')
-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")
}