Fixed IsContract method to use the contractCreation flag

This commit is contained in:
obscuren 2014-03-27 23:17:14 +01:00
parent 56a58ad70d
commit 3c3431d111
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
package ethchain
import (
"bytes"
"github.com/ethereum/eth-go/ethutil"
"github.com/obscuren/secp256k1-go"
"math/big"
@ -62,7 +61,7 @@ func (tx *Transaction) Hash() []byte {
}
func (tx *Transaction) IsContract() bool {
return bytes.Compare(tx.Recipient, ContractAddr) == 0
return tx.contractCreation
}
func (tx *Transaction) Signature(key []byte) []byte {