core: fix contract is always false even when tx is contract creaction.

This commit is contained in:
nkbai 2017-08-23 17:20:04 +08:00
parent fc5f8a3dda
commit 5f65109c7d

View file

@ -300,7 +300,7 @@ func (tx *Transaction) String() string {
Hex: %x Hex: %x
`, `,
tx.Hash(), tx.Hash(),
len(tx.data.Recipient) == 0, tx.data.Recipient == nil,
from, from,
to, to,
tx.data.AccountNonce, tx.data.AccountNonce,