good morning!!!!

Skip to content
Snippets Groups Projects
Commit b6c5b3b4 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

xeth: fixed contract addr check

parent d7580f21
No related branches found
No related tags found
No related merge requests found
...@@ -894,7 +894,7 @@ func (self *XEth) Transact(fromStr, toStr, nonceStr, valueStr, gasStr, gasPriceS ...@@ -894,7 +894,7 @@ func (self *XEth) Transact(fromStr, toStr, nonceStr, valueStr, gasStr, gasPriceS
return "", err return "", err
} }
if !isAddress(toStr) { if len(toStr) > 0 && toStr != "0x" && !isAddress(toStr) {
return "", errors.New("Invalid address") return "", errors.New("Invalid address")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment