Merge pull request #1615 from obscuren/contract-addr-fix
xeth: fixed contract addr check
This commit is contained in:
commit
dcb23bc3ab
|
@ -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…
Reference in New Issue