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:32:06 +0800 |
commit | b6c5b3b4a77eb2e725cf2e9b257fff7b2861e95e (patch) | |
tree | a0f85c9a2eb976d3b85dbd2cfb83ac940c60bf0d | |
parent | d7580f21f65beaf896bfc004cf13d28ed87f2ae3 (diff) | |
download | go-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
-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") } |