Skip to content

Commit f5d1224

Browse files
committed
updates
1 parent 4cfa9e0 commit f5d1224

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Diff for: ignite/cmd/testnet_inplace.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55

66
"github.com/ignite/cli/v29/ignite/pkg/cliui"
77
"github.com/ignite/cli/v29/ignite/pkg/cosmosaccount"
8+
"github.com/ignite/cli/v29/ignite/pkg/errors"
89
"github.com/ignite/cli/v29/ignite/services/chain"
910
"github.com/spf13/cobra"
1011
)
@@ -75,7 +76,7 @@ func testnetInplace(cmd *cobra.Command, session *cliui.Session) error {
7576
return err
7677
}
7778
ca, err := cosmosaccount.New(
78-
cosmosaccount.WithKeyringBackend(cosmosaccount.KeyringBackend(keyringbankend)),
79+
cosmosaccount.WithKeyringBackend(cosmosaccount.KeyringBackend(keyringBackend)),
7980
cosmosaccount.WithHome(home),
8081
)
8182
if err != nil {
@@ -89,7 +90,7 @@ func testnetInplace(cmd *cobra.Command, session *cliui.Session) error {
8990
)
9091
for _, acc := range cfg.Accounts {
9192
sdkAcc, err := ca.GetByName(acc.Name)
92-
if !errors.As(err, &accErr) {
93+
if errors.As(err, &accErr) {
9394
sdkAcc, _, err = ca.Create(acc.Name)
9495
}
9596
if err != nil {
@@ -118,10 +119,10 @@ func testnetInplace(cmd *cobra.Command, session *cliui.Session) error {
118119
return err
119120
}
120121

121-
args := chain.InplaceArgs{
122+
args := chain.InPlaceArgs{
122123
NewChainID: chainID,
123124
NewOperatorAddress: operatorAddress.String(),
124-
AcountsToFund: accounts,
125+
AccountsToFund: accounts,
125126
}
126127
return c.TestnetInPlace(cmd.Context(), args)
127128
}

Diff for: ignite/services/chain/runtime.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ func (c Chain) Gentx(ctx context.Context, runner chaincmdrunner.Runner, v Valida
3737
)
3838
}
3939

40-
func (c Chain) InPlace(ctx context.Context, runner chaincmdrunner.Runner, args InplaceArgs) error {
40+
func (c Chain) InPlace(ctx context.Context, runner chaincmdrunner.Runner, args InPlaceArgs) error {
4141
err := runner.InPlace(ctx,
4242
args.NewChainID,
4343
args.NewOperatorAddress,
4444
chaincmd.InPlaceWithPrvKey(args.PrvKeyValidator),
45-
chaincmd.InPlaceWithAccountToFund(args.AcountsToFund),
45+
chaincmd.InPlaceWithAccountToFund(args.AccountsToFund),
4646
chaincmd.InPlaceWithSkipConfirmation(),
4747
)
4848
return err

Diff for: ignite/services/chain/testnet.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ type InPlaceArgs struct {
1010
NewChainID string
1111
NewOperatorAddress string
1212
PrvKeyValidator string
13-
AccountsToFund string
13+
AccountsToFund string
1414
}
1515

16-
func (c Chain) TestnetInPlace(ctx context.Context, args InplaceArgs) error {
16+
func (c Chain) TestnetInPlace(ctx context.Context, args InPlaceArgs) error {
1717
commands, err := c.Commands(ctx)
1818
if err != nil {
1919
return err

0 commit comments

Comments
 (0)