This commit is contained in:
SaitTalhaNisanci 2018-01-31 00:45:01 +00:00 committed by GitHub
commit fe4ca59a2f

View file

@ -188,11 +188,7 @@ func (tx *Transaction) CheckNonce() bool { return true }
// To returns the recipient address of the transaction. // To returns the recipient address of the transaction.
// It returns nil if the transaction is a contract creation. // It returns nil if the transaction is a contract creation.
func (tx *Transaction) To() *common.Address { func (tx *Transaction) To() *common.Address {
if tx.data.Recipient == nil { return tx.data.Recipient
return nil
}
to := *tx.data.Recipient
return &to
} }
// Hash hashes the RLP encoding of tx. // Hash hashes the RLP encoding of tx.