Skip to content

Commit 7fbf990

Browse files
committed
xeth: fixed contract addr check
1 parent d051274 commit 7fbf990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xeth/xeth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ func (self *XEth) Transact(fromStr, toStr, nonceStr, valueStr, gasStr, gasPriceS
894894
return "", err
895895
}
896896

897-
if !isAddress(toStr) {
897+
if len(toStr) > 0 && toStr != "0x" && !isAddress(toStr) {
898898
return "", errors.New("Invalid address")
899899
}
900900

0 commit comments

Comments
 (0)