Always return transaction hash

This commit is contained in:
Taylor Gerring 2015-07-05 12:25:44 -05:00 committed by Bas van Kervel
parent cc278c597c
commit 046e3fca63

View file

@ -941,7 +941,6 @@ func (self *XEth) Transact(fromStr, toStr, nonceStr, valueStr, gasStr, gasPriceS
if contractCreation {
addr := crypto.CreateAddress(from, nonce)
glog.V(logger.Info).Infof("Tx(%x) created: %x\n", tx.Hash(), addr)
return addr.Hex(), nil
} else {
glog.V(logger.Info).Infof("Tx(%x) to: %x\n", tx.Hash(), tx.To())
}