Always return transaction hash
This commit is contained in:
parent
62559ac330
commit
dd521ece3f
@ -966,7 +966,6 @@ func (self *XEth) Transact(fromStr, toStr, nonceStr, valueStr, gasStr, gasPriceS
|
|||||||
if contractCreation {
|
if contractCreation {
|
||||||
addr := crypto.CreateAddress(from, nonce)
|
addr := crypto.CreateAddress(from, nonce)
|
||||||
glog.V(logger.Info).Infof("Tx(%x) created: %x\n", tx.Hash(), addr)
|
glog.V(logger.Info).Infof("Tx(%x) created: %x\n", tx.Hash(), addr)
|
||||||
return addr.Hex(), nil
|
|
||||||
} else {
|
} else {
|
||||||
glog.V(logger.Info).Infof("Tx(%x) to: %x\n", tx.Hash(), tx.To())
|
glog.V(logger.Info).Infof("Tx(%x) to: %x\n", tx.Hash(), tx.To())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user