Debug output, minor fixes and tweaks

* Script compile length fix
* Transition fix
This commit is contained in:
obscuren
2014-07-04 15:32:10 +02:00
parent 23b5b5fa36
commit 90eb4f1939
5 changed files with 26 additions and 12 deletions

View File

@ -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