aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-24 06:16:32 +0800
committerobscuren <geffobscura@gmail.com>2014-08-24 06:16:32 +0800
commitcdbc3ecc2a738a4b8803c40dfc510fd099ce8584 (patch)
tree0cb17dbd8a88f3a66a87ad9f6289caeefc2798d1 /ethutil
parent67af3003830c91e072a17d05fa55a1f494ce9602 (diff)
downloadgo-tangerine-cdbc3ecc2a738a4b8803c40dfc510fd099ce8584.tar.gz
go-tangerine-cdbc3ecc2a738a4b8803c40dfc510fd099ce8584.tar.zst
go-tangerine-cdbc3ecc2a738a4b8803c40dfc510fd099ce8584.zip
Serpent! :-)
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/script.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/ethutil/script.go b/ethutil/script.go
index b796e7c1e..bd087e7e0 100644
--- a/ethutil/script.go
+++ b/ethutil/script.go
@@ -2,9 +2,11 @@ package ethutil
import (
"fmt"
+ "strings"
+
"github.com/obscuren/mutan"
"github.com/obscuren/mutan/backends"
- "strings"
+ "github.com/obscuren/serpent-go"
)
// General compile function
@@ -14,15 +16,13 @@ func Compile(script string, silent bool) (ret []byte, err error) {
if len(line) > 1 && line[0:2] == "#!" {
switch line {
- /*
- case "#!serpent":
- byteCode, err := serpent.Compile(script)
- if err != nil {
- return nil, err
- }
+ case "#!serpent":
+ byteCode, err := serpent.Compile(script)
+ if err != nil {
+ return nil, err
+ }
- return byteCode, nil
- */
+ return byteCode, nil
}
} else {