aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'xeth/types.go')
-rw-r--r--xeth/types.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/xeth/types.go b/xeth/types.go
index 1d6a0c5ca..cc06a8dcd 100644
--- a/xeth/types.go
+++ b/xeth/types.go
@@ -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)