aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ethutil/parsing.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/ethutil/parsing.go b/ethutil/parsing.go
index 16ed2d06d..a9d50e425 100644
--- a/ethutil/parsing.go
+++ b/ethutil/parsing.go
@@ -131,13 +131,14 @@ func Instr(instr string) (int, []string, error) {
// Script compilation functions
// Compiles strings to machine code
-func Assemble(instructions ...interface{}) (script []string) {
- script = make([]string, len(instructions))
+func Assemble(instructions ...interface{}) (script []byte) {
+ //script = make([]string, len(instructions))
- for i, val := range instructions {
+ for _, val := range instructions {
instr, _ := CompileInstr(val)
- script[i] = string(instr)
+ //script[i] = string(instr)
+ script = append(script, instr...)
}
return