aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-28 06:17:14 +0800
committerobscuren <geffobscura@gmail.com>2014-03-28 06:17:14 +0800
commit3c3431d111ae8ba7f03349f93c9b191fcdf92254 (patch)
tree054cab6989f4d0fcd30f1b5b6fc49485df426ac4
parent56a58ad70db22b0714a8f81fe31eaedc2a1e8e0d (diff)
downloadgo-tangerine-3c3431d111ae8ba7f03349f93c9b191fcdf92254.tar
go-tangerine-3c3431d111ae8ba7f03349f93c9b191fcdf92254.tar.gz
go-tangerine-3c3431d111ae8ba7f03349f93c9b191fcdf92254.tar.bz2
go-tangerine-3c3431d111ae8ba7f03349f93c9b191fcdf92254.tar.lz
go-tangerine-3c3431d111ae8ba7f03349f93c9b191fcdf92254.tar.xz
go-tangerine-3c3431d111ae8ba7f03349f93c9b191fcdf92254.tar.zst
go-tangerine-3c3431d111ae8ba7f03349f93c9b191fcdf92254.zip
Fixed IsContract method to use the contractCreation flag
-rw-r--r--ethchain/transaction.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ethchain/transaction.go b/ethchain/transaction.go
index af27fe639..9fdf55b4d 100644
--- a/ethchain/transaction.go
+++ b/ethchain/transaction.go
@@ -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 {