aboutsummaryrefslogblamecommitdiffstats
path: root/ethutil/script_unix.go
blob: 9250dda57d7b603e43a9e7d6f99f0867794a9ffa (plain) (tree)
1
2
3
4
5
6
7
8
9

                  

               
                                       

                           
                                                                  
                            


                                                        
                 

                                    
         

                       
 
// +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
}