Using mutan assembler stage

This commit is contained in:
obscuren 2014-04-27 18:05:48 +02:00
parent 0e8ca84b67
commit 883810b533
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import (
// General compile function
func Compile(script string) ([]byte, error) {
asm, errors := mutan.Compile(strings.NewReader(script), false)
byteCode, errors := mutan.Compile(strings.NewReader(script), false)
if len(errors) > 0 {
var errs string
for _, er := range errors {
@ -20,7 +20,7 @@ func Compile(script string) ([]byte, error) {
return nil, fmt.Errorf("%v", errs)
}
return ethutil.Assemble(asm...), nil
return byteCode, nil
}
func CompileScript(script string) ([]byte, []byte, error) {