mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
core: remove unnecessary lines from transaction.go
This commit is contained in:
parent
07d4a02257
commit
3a26a74898
1 changed files with 1 additions and 5 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue