xeth: fixed contract addr check
This commit is contained in:
1 parent
d7580f21f6
commit
b6c5b3b4a7
1 file changed
+1
-1
+1
-1
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user