From 5f65109c7da211c2843a4a6d174d767c8a7e4674 Mon Sep 17 00:00:00 2001 From: nkbai Date: Wed, 23 Aug 2017 17:20:04 +0800 Subject: [PATCH] core: fix contract is always false even when tx is contract creaction. --- core/types/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/transaction.go b/core/types/transaction.go index 8e108b2a33..947fc85d60 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -300,7 +300,7 @@ func (tx *Transaction) String() string { Hex: %x `, tx.Hash(), - len(tx.data.Recipient) == 0, + tx.data.Recipient == nil, from, to, tx.data.AccountNonce,