diff options
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/types.go | 5 |
1 files changed, 4 insertions, 1 deletions
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 |