diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-20 09:34:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-20 09:34:12 +0800 |
commit | 3983dd2428137211f84f299f9ce8690c22f50afd (patch) | |
tree | 3a2dc53b365e6f377fc82a3514150d1297fe549c /ethutil/script_unix.go | |
parent | 7daa8c2f6eb25511c6a54ad420709af911fc6748 (diff) | |
parent | 0a9dc1536c5d776844d6947a0090ff7e1a7c6ab4 (diff) | |
download | go-tangerine-3983dd2428137211f84f299f9ce8690c22f50afd.tar.gz go-tangerine-3983dd2428137211f84f299f9ce8690c22f50afd.tar.zst go-tangerine-3983dd2428137211f84f299f9ce8690c22f50afd.zip |
Merge branch 'release/v0.7.10'vv0.7.10
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 +} |