mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
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
|
|
}
|