diff --git a/.gitignore b/.gitignore index c24dfb9c4..f8b38d4be 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,6 @@ dependency-graph.png *.synctex.gz contract_tests/* app.test + +mytestnet +_build diff --git a/cmd/canined/root.go b/cmd/canined/root.go index 040c44eec..052693fda 100644 --- a/cmd/canined/root.go +++ b/cmd/canined/root.go @@ -89,6 +89,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { } initRootCmd(rootCmd, encodingConfig) + rootCmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID") return rootCmd, encodingConfig } @@ -174,6 +175,7 @@ func txCommand() *cobra.Command { ) app.ModuleBasics.AddTxCommands(cmd) + cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID") return cmd }