aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mist/gui.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/cmd/mist/gui.go b/cmd/mist/gui.go
index d37d6f81b..66614478c 100644
--- a/cmd/mist/gui.go
+++ b/cmd/mist/gui.go
@@ -238,13 +238,11 @@ func (gui *Gui) insertTransaction(window string, tx *types.Transaction) {
inout = "recv"
}
- var (
- ptx = xeth.NewTx(tx)
- send = from.Hex()
- rec = tx.To().Hex()
- )
- ptx.Sender = send
- ptx.Address = rec
+ ptx := xeth.NewTx(tx)
+ ptx.Sender = from.Hex()
+ if to := tx.To(); to != nil {
+ ptx.Address = to.Hex()
+ }
if window == "post" {
//gui.getObjectByName("transactionView").Call("addTx", ptx, inout)