laconicd-deprecated/cmd/ethermintd/main.go
Federico Kunze 5a3d514ba0
conflicts
2021-04-17 12:00:07 +02:00

25 lines
377 B
Go

package main
import (
"os"
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
"github.com/cosmos/ethermint/app"
)
func main() {
rootCmd, _ := NewRootCmd()
if err := svrcmd.Execute(rootCmd, app.DefaultNodeHome); err != nil {
switch e := err.(type) {
case server.ErrorCode:
os.Exit(e.Code)
default:
os.Exit(1)
}
}
}