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") }