Update transaction.go

This commit is contained in:
Felix Lange 2016-11-28 21:55:39 +01:00 committed by GitHub
parent 780f747017
commit e8f86b0dc1

View file

@ -233,8 +233,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) Nonce() uint64 { return tx.data.AccountNonce }
func (tx *Transaction) CheckNonce() bool { return true } func (tx *Transaction) CheckNonce() bool { return true }
// Get the recipient address of this transaction. // To returns the recipient address of the transaction.
// It returns nil if the transaction is a contract creation transaction. // 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 { if tx.data.Recipient == nil {
return nil return nil