xeth: fixed contract addr check

pull/1318/head v1.0.1.1
Jeffrey Wilcke 10 years ago
parent d051274691
commit 7fbf990cc9
  1. 2
      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")
}

Loading…
Cancel
Save