aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/transaction.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-12 17:19:32 +0800
committerobscuren <geffobscura@gmail.com>2014-06-12 17:19:32 +0800
commitb855e5f7df194c84651d7cc7ee32d307a2fa0a2e (patch)
treee4a87b6d81fb7c01963713cb1cc647d1327eca16 /ethchain/transaction.go
parent6593c6942454233f61d7d74f030a9075a84807cd (diff)
downloadgo-tangerine-b855e5f7df194c84651d7cc7ee32d307a2fa0a2e.tar.gz
go-tangerine-b855e5f7df194c84651d7cc7ee32d307a2fa0a2e.tar.zst
go-tangerine-b855e5f7df194c84651d7cc7ee32d307a2fa0a2e.zip
Changed opcode numbers and added missing opcodes
Diffstat (limited to 'ethchain/transaction.go')
-rw-r--r--ethchain/transaction.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ethchain/transaction.go b/ethchain/transaction.go
index 2cb946b3b..32dbd8388 100644
--- a/ethchain/transaction.go
+++ b/ethchain/transaction.go
@@ -1,6 +1,7 @@
package ethchain
import (
+ "bytes"
"fmt"
"github.com/ethereum/eth-go/ethutil"
"github.com/obscuren/secp256k1-go"
@@ -144,7 +145,8 @@ func (tx *Transaction) RlpValueDecode(decoder *ethutil.Value) {
tx.v = byte(decoder.Get(6).Uint())
tx.r = decoder.Get(7).Bytes()
tx.s = decoder.Get(8).Bytes()
- if len(tx.Recipient) == 0 {
+
+ if bytes.Compare(tx.Recipient, ContractAddr) == 0 {
tx.contractCreation = true
}
}