diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-08-07 20:30:45 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-08-07 20:38:21 +0800 |
commit | 7fbf990cc9b63f6e0021abb3c856ca76b8eecdd6 (patch) | |
tree | b4274f4bc1e14149d30d757af28b9be9d76a05bc /xeth | |
parent | d05127469109d1978c7705d1f3f354fde7b82ff1 (diff) | |
download | go-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.go | 2 |
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") } |