core, xeth: core.AddressFromMessage removed => crypto.CreateAddress

This commit is contained in:
Jeffrey Wilcke
2015-07-02 11:19:10 +02:00
parent bb418a43c1
commit 529fb7a7d7
3 changed files with 9 additions and 9 deletions

View File

@ -149,7 +149,8 @@ func NewTx(tx *types.Transaction) *Transaction {
if to := tx.To(); to != nil {
receiver = to.Hex()
} else {
receiver = core.AddressFromMessage(tx).Hex()
from, _ := tx.From()
receiver = crypto.CreateAddress(from, tx.Nonce()).Hex()
}
createsContract := core.MessageCreatesContract(tx)