mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
parent
2c802399c3
commit
780f747017
1 changed files with 2 additions and 0 deletions
|
|
@ -233,6 +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) CheckNonce() bool { return true }
|
||||
|
||||
// Get the recipient address of this transaction.
|
||||
// It returns nil if the transaction is a contract creation transaction.
|
||||
func (tx *Transaction) To() *common.Address {
|
||||
if tx.data.Recipient == nil {
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue