diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-10 00:28:34 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-10 00:28:34 +0800 |
commit | 0fccbeabcc3b8c110ce3712e5488ad99245f92ee (patch) | |
tree | f00415c02d5fc31764ee68d1421e0de2c7530a39 /ethutil | |
parent | 720521ed4a28c8a1b74bedd03e82bf4f887c9cb5 (diff) | |
download | go-tangerine-0fccbeabcc3b8c110ce3712e5488ad99245f92ee.tar.gz go-tangerine-0fccbeabcc3b8c110ce3712e5488ad99245f92ee.tar.zst go-tangerine-0fccbeabcc3b8c110ce3712e5488ad99245f92ee.zip |
No longer return a list, but raw bytes
Diffstat (limited to 'ethutil')
-rw-r--r-- | ethutil/parsing.go | 9 |
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 |