Commit 883810b5 authored by obscuren's avatar obscuren

Using mutan assembler stage

parent 0e8ca84b
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment