Skip to content

Commit 7dbfe7d

Browse files
refactor(cmd): remove duplicate nibid add-genesis-account command, since it's one of the nibid genesis subcommands (#2448)
1 parent f6f0bcd commit 7dbfe7d

File tree

5 files changed

+6
-244
lines changed

5 files changed

+6
-244
lines changed

cmd/nibid/cmd/decode_base64_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99
"github.com/cometbft/cometbft/libs/log"
1010
"github.com/cosmos/cosmos-sdk/client"
1111
"github.com/cosmos/cosmos-sdk/server"
12+
"github.com/cosmos/cosmos-sdk/types/module"
13+
"github.com/cosmos/cosmos-sdk/x/genutil"
1214
genutiltest "github.com/cosmos/cosmos-sdk/x/genutil/client/testutil"
1315
"github.com/spf13/viper"
1416
"github.com/stretchr/testify/require"
@@ -33,7 +35,7 @@ func TestBase64Decode(t *testing.T) {
3335

3436
appCodec := app.MakeEncodingConfig().Codec
3537
err = genutiltest.ExecInitCmd(
36-
testModuleBasicManager, home, appCodec)
38+
module.NewBasicManager(genutil.AppModuleBasic{}), home, appCodec)
3739
require.NoError(t, err)
3840

3941
serverCtx := server.NewContext(viper.New(), cfg, logger)

cmd/nibid/cmd/genaccounts.go

Lines changed: 0 additions & 142 deletions
This file was deleted.

cmd/nibid/cmd/genaccounts_test.go

Lines changed: 0 additions & 97 deletions
This file was deleted.

cmd/nibid/cmd/root.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig app.EncodingConfig) {
119119

120120
rootCmd.AddCommand(
121121
InitCmd(app.ModuleBasics, app.DefaultNodeHome),
122-
AddGenesisAccountCmd(app.DefaultNodeHome),
123122
GetBuildWasmMsg(),
124123
DecodeBase64Cmd(app.DefaultNodeHome),
125124
cmtcli.NewCompletionCmd(rootCmd, true),

contrib/scripts/localnet.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ fi
188188
val_address=$($BINARY keys show $val_key_name -a)
189189
val_address=${val_address:-"nibi1zaavvzxez0elundtn32qnk9lkm8kmcsz44g7xl"}
190190

191-
$BINARY add-genesis-account $val_address $GENESIS_COINS
191+
$BINARY genesis add-genesis-account $val_address $GENESIS_COINS
192192
# EVM encoded nibi address for the same account
193-
$BINARY add-genesis-account nibi1cr6tg4cjvux00pj6zjqkh6d0jzg7mksaywxyl3 $GENESIS_COINS
194-
$BINARY add-genesis-account nibi1ltez0kkshywzm675rkh8rj2eaf8et78cqjqrhc $GENESIS_COINS
193+
$BINARY genesis add-genesis-account nibi1cr6tg4cjvux00pj6zjqkh6d0jzg7mksaywxyl3 $GENESIS_COINS
194+
$BINARY genesis add-genesis-account nibi1ltez0kkshywzm675rkh8rj2eaf8et78cqjqrhc $GENESIS_COINS
195195
echo_success "Successfully added genesis account: $val_key_name"
196196

197197
# ------------------------------------------------------------------------

0 commit comments

Comments
 (0)