Removed compiling from the transaction
This commit is contained in:
1 parent
d8b5bbd48c
commit
d69db6e617
1 file changed
+1
-6
@@ -24,12 +24,7 @@ func NewTransaction(to []byte, value *big.Int, data []string) *Transaction {
|
||||
tx.Nonce = 0
|
||||
|
||||
// Serialize the data
|
||||
tx.Data = make([]string, len(data))
|
||||
for i, val := range data {
|
||||
instr, _ := ethutil.CompileInstr(val)
|
||||
|
||||
tx.Data[i] = string(instr)
|
||||
}
|
||||
tx.Data = data
|
||||
|
||||
return &tx
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user