aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-28 00:05:48 +0800
committerobscuren <geffobscura@gmail.com>2014-04-28 00:05:48 +0800
commit883810b53328b302aa765ccf9d228bd73c046cac (patch)
tree515bcadefb386739997dad11288b3fb501a3ea3a
parent0e8ca84b67465c0211a0cb46fc7bb6b9c4988dfd (diff)
downloadgo-tangerine-883810b53328b302aa765ccf9d228bd73c046cac.tar
go-tangerine-883810b53328b302aa765ccf9d228bd73c046cac.tar.gz
go-tangerine-883810b53328b302aa765ccf9d228bd73c046cac.tar.bz2
go-tangerine-883810b53328b302aa765ccf9d228bd73c046cac.tar.lz
go-tangerine-883810b53328b302aa765ccf9d228bd73c046cac.tar.xz
go-tangerine-883810b53328b302aa765ccf9d228bd73c046cac.tar.zst
go-tangerine-883810b53328b302aa765ccf9d228bd73c046cac.zip
Using mutan assembler stage
-rw-r--r--utils/compile.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/compile.go b/utils/compile.go
index 894fc2d09..12e3a60c3 100644
--- a/utils/compile.go
+++ b/utils/compile.go
@@ -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) {