mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-28 00:27:26 +00:00
xeth: fixed contract addr check
This commit is contained in:
parent
d051274691
commit
7fbf990cc9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue