diff --git a/xeth/xeth.go b/xeth/xeth.go index 372068c148f3cca73994bf994b69d769818b2139..f447a1ac353e4e9a935c55caa61269b1808ee8af 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") }