mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-09 20:59:02 +00:00
cmd/mist: fix another nil recipient address panic.
This commit is contained in:
parent
b2b1241dd7
commit
d1729acd2b
1 changed files with 5 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue