github.com/jonasnick/go-ethereum@v0.7.12-0.20150216215225-22176f05d387/ethutil/script_unix.go (about)

     1  // +build !windows
     2  
     3  package ethutil
     4  
     5  import "github.com/ethereum/serpent-go"
     6  
     7  // General compile function
     8  func Compile(script string, silent bool) (ret []byte, err error) {
     9  	if len(script) > 2 {
    10  		byteCode, err := serpent.Compile(script)
    11  		if err != nil {
    12  			return nil, err
    13  		}
    14  
    15  		return byteCode, nil
    16  	}
    17  
    18  	return nil, nil
    19  }