diff options
Diffstat (limited to 'ethutil/script_unix.go')
-rw-r--r-- | ethutil/script_unix.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ethutil/script_unix.go b/ethutil/script_unix.go new file mode 100644 index 000000000..9250dda57 --- /dev/null +++ b/ethutil/script_unix.go @@ -0,0 +1,19 @@ +// +build !windows + +package ethutil + +import "github.com/ethereum/serpent-go" + +// General compile function +func Compile(script string, silent bool) (ret []byte, err error) { + if len(script) > 2 { + byteCode, err := serpent.Compile(script) + if err != nil { + return nil, err + } + + return byteCode, nil + } + + return nil, nil +} |