From 3a26a748989d8c043b491db1070235925181c5e1 Mon Sep 17 00:00:00 2001 From: saitTalhaNisanci Date: Wed, 31 Jan 2018 03:37:22 +0300 Subject: [PATCH] core: remove unnecessary lines from transaction.go --- core/types/transaction.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/types/transaction.go b/core/types/transaction.go index a7ed211e42..33243386d4 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -188,11 +188,7 @@ func (tx *Transaction) CheckNonce() bool { return true } // To returns the recipient address of the transaction. // It returns nil if the transaction is a contract creation. func (tx *Transaction) To() *common.Address { - if tx.data.Recipient == nil { - return nil - } - to := *tx.data.Recipient - return &to + return tx.data.Recipient } // Hash hashes the RLP encoding of tx.