Commit 3c3431d1 authored by obscuren's avatar obscuren

Fixed IsContract method to use the contractCreation flag

parent 56a58ad7
package ethchain package ethchain
import ( import (
"bytes"
"github.com/ethereum/eth-go/ethutil" "github.com/ethereum/eth-go/ethutil"
"github.com/obscuren/secp256k1-go" "github.com/obscuren/secp256k1-go"
"math/big" "math/big"
...@@ -62,7 +61,7 @@ func (tx *Transaction) Hash() []byte { ...@@ -62,7 +61,7 @@ func (tx *Transaction) Hash() []byte {
} }
func (tx *Transaction) IsContract() bool { func (tx *Transaction) IsContract() bool {
return bytes.Compare(tx.Recipient, ContractAddr) == 0 return tx.contractCreation
} }
func (tx *Transaction) Signature(key []byte) []byte { func (tx *Transaction) Signature(key []byte) []byte {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment