1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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 }