mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 04:57:08 +00:00
* fix/hway-db-driver * fix/hway-db-driver * chore(scripts): add tx indexer and psql connection to test * fix(scripts): make testnet setup more robust and configurable
20 lines
389 B
Go
20 lines
389 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"cosmossdk.io/log"
|
|
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
|
|
_ "github.com/joho/godotenv/autoload"
|
|
|
|
"github.com/onsonr/sonr/app"
|
|
)
|
|
|
|
func main() {
|
|
rootCmd := NewRootCmd()
|
|
if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil {
|
|
log.NewLogger(rootCmd.OutOrStderr()).Error("failure when running app", "err", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|