aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-10 16:43:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-10 16:43:08 +0800
commitd1729acd2bb15401e6b9b6a41bd753b122771d3c (patch)
treeb83dffa2ef4ca83da85cf5de6fb479efc10e22d4 /cmd
parentb2b1241dd74137b8c17aa70b2225f76297ca00cf (diff)
downloadgo-tangerine-d1729acd2bb15401e6b9b6a41bd753b122771d3c.tar
go-tangerine-d1729acd2bb15401e6b9b6a41bd753b122771d3c.tar.gz
go-tangerine-d1729acd2bb15401e6b9b6a41bd753b122771d3c.tar.bz2
go-tangerine-d1729acd2bb15401e6b9b6a41bd753b122771d3c.tar.lz
go-tangerine-d1729acd2bb15401e6b9b6a41bd753b122771d3c.tar.xz
go-tangerine-d1729acd2bb15401e6b9b6a41bd753b122771d3c.tar.zst
go-tangerine-d1729acd2bb15401e6b9b6a41bd753b122771d3c.zip
cmd/mist: fix another nil recipient address panic.
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)