20 lines
		
	
	
		
			326 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			326 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +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
 | |
| }
 |