xeth: fixed contract addr check
This commit is contained in:
		@@ -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")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user