Commit dcb23bc3 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke

Merge pull request #1615 from obscuren/contract-addr-fix

xeth: fixed contract addr check
parents d7580f21 b6c5b3b4
......@@ -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")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment