Skip to content

Commit

Permalink
feat: add validate genesis command
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Jul 30, 2024
1 parent e0543e3 commit ae77a89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions cmd/arkeod/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) {

rootCmd.AddCommand(
genutilcli.InitCmd(app.ModuleBasics, app.DefaultNodeHome),
genutilcli.ValidateGenesisCmd(app.ModuleBasics),
cmcli.NewCompletionCmd(rootCmd, true),
debug.Cmd(),
confixcmd.ConfigCommand(),
Expand Down
8 changes: 4 additions & 4 deletions scripts/genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ if [ ! -f ~/.arkeo/config/priv_validator_key.json ]; then
fi

if [ ! -f ~/.arkeo/config/genesis.json ]; then
arkeod init local --staking-bond-denom $TOKEN --chain-id "$CHAIN_ID"
arkeod init local --default-denom $TOKEN --chain-id "$CHAIN_ID"
arkeod keys add $USER --keyring-backend test
arkeod add-genesis-account $USER $STAKE --keyring-backend test
arkeod genesis add-genesis-account $USER $STAKE --keyring-backend test
arkeod keys list --keyring-backend test
arkeod gentx $USER $STAKE --chain-id $CHAIN_ID --keyring-backend test
arkeod collect-gentxs
arkeod genesis gentx $USER $STAKE --chain-id $CHAIN_ID --keyring-backend test
arkeod genesis collect-gentxs

arkeod keys add faucet --keyring-backend test
FAUCET=$(arkeod keys show faucet -a --keyring-backend test)
Expand Down

0 comments on commit ae77a89

Please sign in to comment.