aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/transaction.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-21 19:37:06 +0800
committerobscuren <geffobscura@gmail.com>2014-02-21 19:37:06 +0800
commit681eacaa7fdda41fe168baba03095ee74708444f (patch)
tree6ac9ab41dbf1ca743dc2af0a66813143c39f7b40 /ethchain/transaction.go
parentb20c0b1d59f4109c49c7351ddeecbe195912da38 (diff)
downloaddexon-681eacaa7fdda41fe168baba03095ee74708444f.tar.gz
dexon-681eacaa7fdda41fe168baba03095ee74708444f.tar.zst
dexon-681eacaa7fdda41fe168baba03095ee74708444f.zip
Removed old instruction code
Diffstat (limited to 'ethchain/transaction.go')
-rw-r--r--ethchain/transaction.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/ethchain/transaction.go b/ethchain/transaction.go
index 46f5e7e4c..2417bbd7d 100644
--- a/ethchain/transaction.go
+++ b/ethchain/transaction.go
@@ -26,12 +26,9 @@ func NewTransaction(to []byte, value *big.Int, data []string) *Transaction {
// Serialize the data
tx.Data = make([]string, len(data))
for i, val := range data {
- instr, err := ethutil.CompileInstr(val)
- if err != nil {
- //fmt.Printf("compile error:%d %v\n", i+1, err)
- }
+ instr, _ := ethutil.CompileInstr(val)
- tx.Data[i] = instr
+ tx.Data[i] = string(instr)
}
return &tx