aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-04 21:32:10 +0800
committerobscuren <geffobscura@gmail.com>2014-07-04 21:32:10 +0800
commit90eb4f1939f7b0389d5784b889cc0e5d2b3451f7 (patch)
treec812cf882cb5a22ea7ffd4a061be2ac286dcfa58 /ethutil
parent23b5b5fa36530eb82543d7d877f8e9e1900232cf (diff)
downloadgo-tangerine-90eb4f1939f7b0389d5784b889cc0e5d2b3451f7.tar.gz
go-tangerine-90eb4f1939f7b0389d5784b889cc0e5d2b3451f7.tar.zst
go-tangerine-90eb4f1939f7b0389d5784b889cc0e5d2b3451f7.zip
Debug output, minor fixes and tweaks
* Script compile length fix * Transition fix
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/script.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethutil/script.go b/ethutil/script.go
index fa05094e7..f5c53f84c 100644
--- a/ethutil/script.go
+++ b/ethutil/script.go
@@ -9,7 +9,7 @@ import (
)
// General compile function
-func Compile(script string) (ret []byte, err error) {
+func Compile(script string, silent bool) (ret []byte, err error) {
if len(script) > 2 {
line := strings.Split(script, "\n")[0]
@@ -26,6 +26,7 @@ func Compile(script string) (ret []byte, err error) {
} else {
compiler := mutan.NewCompiler(backend.NewEthereumBackend())
+ compiler.Silent = silent
byteCode, errors := compiler.Compile(strings.NewReader(script))
if len(errors) > 0 {
var errs string