From 147a699c6543b1e4ec8c933f8aaff4e0639897b6 Mon Sep 17 00:00:00 2001 From: Gustav Simonsson Date: Mon, 1 Jun 2015 22:00:48 +0200 Subject: Add missing err checks on From() (skip RPC for now) --- xeth/types.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xeth') diff --git a/xeth/types.go b/xeth/types.go index 1be5e109c..3bb1447ca 100644 --- a/xeth/types.go +++ b/xeth/types.go @@ -139,6 +139,10 @@ type Transaction struct { } func NewTx(tx *types.Transaction) *Transaction { + sender, err := tx.From() + if err != nil { + return nil + } hash := tx.Hash().Hex() var receiver string @@ -147,7 +151,6 @@ func NewTx(tx *types.Transaction) *Transaction { } else { receiver = core.AddressFromMessage(tx).Hex() } - sender, _ := tx.From() createsContract := core.MessageCreatesContract(tx) var data string -- cgit v1.2.3