aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSteven Roose <stevenroose@gmail.com>2016-11-29 04:56:38 +0800
committerFelix Lange <fjl@twurst.com>2016-11-29 04:56:38 +0800
commit61ccb43487a1d751e20b39d8328cb00994cdf796 (patch)
tree96a4309b1f7c5559a1ff7e6b46a683dd6c39c1bc /core
parentbf24b120d7ab952282c5c12c36d249626b1293ea (diff)
downloaddexon-61ccb43487a1d751e20b39d8328cb00994cdf796.tar
dexon-61ccb43487a1d751e20b39d8328cb00994cdf796.tar.gz
dexon-61ccb43487a1d751e20b39d8328cb00994cdf796.tar.bz2
dexon-61ccb43487a1d751e20b39d8328cb00994cdf796.tar.lz
dexon-61ccb43487a1d751e20b39d8328cb00994cdf796.tar.xz
dexon-61ccb43487a1d751e20b39d8328cb00994cdf796.tar.zst
dexon-61ccb43487a1d751e20b39d8328cb00994cdf796.zip
core/types: Document Transaction.To (#3366)
Diffstat (limited to 'core')
-rw-r--r--core/types/transaction.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go
index 1d2b1b561..f566dc365 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -234,6 +234,8 @@ func (tx *Transaction) Value() *big.Int { return new(big.Int).Set(tx.data.Amo
func (tx *Transaction) Nonce() uint64 { return tx.data.AccountNonce }
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