aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
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:38:21 +0800
commit7fbf990cc9b63f6e0021abb3c856ca76b8eecdd6 (patch)
treeb4274f4bc1e14149d30d757af28b9be9d76a05bc /xeth
parentd05127469109d1978c7705d1f3f354fde7b82ff1 (diff)
downloadgo-tangerine-1.0.1.1.tar
go-tangerine-1.0.1.1.tar.gz
go-tangerine-1.0.1.1.tar.bz2
go-tangerine-1.0.1.1.tar.lz
go-tangerine-1.0.1.1.tar.xz
go-tangerine-1.0.1.1.tar.zst
go-tangerine-1.0.1.1.zip
xeth: fixed contract addr checkv1.0.1.1
Diffstat (limited to 'xeth')
-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")
}