mirror of https://github.com/ethereum/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
326 B
19 lines
326 B
// +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
|
|
}
|
|
|