cmd/mist: fix another nil recipient address panic.
This commit is contained in:
parent
b2b1241dd7
commit
d1729acd2b
@ -238,13 +238,11 @@ func (gui *Gui) insertTransaction(window string, tx *types.Transaction) {
|
|||||||
inout = "recv"
|
inout = "recv"
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
ptx := xeth.NewTx(tx)
|
||||||
ptx = xeth.NewTx(tx)
|
ptx.Sender = from.Hex()
|
||||||
send = from.Hex()
|
if to := tx.To(); to != nil {
|
||||||
rec = tx.To().Hex()
|
ptx.Address = to.Hex()
|
||||||
)
|
}
|
||||||
ptx.Sender = send
|
|
||||||
ptx.Address = rec
|
|
||||||
|
|
||||||
if window == "post" {
|
if window == "post" {
|
||||||
//gui.getObjectByName("transactionView").Call("addTx", ptx, inout)
|
//gui.getObjectByName("transactionView").Call("addTx", ptx, inout)
|
||||||
|
Loading…
Reference in New Issue
Block a user