Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
likesToEatFish committed Aug 30, 2024
1 parent 4cfa9e0 commit 5d09ef5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions ignite/cmd/testnet_inplace.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/ignite/cli/v29/ignite/pkg/cliui"
"github.com/ignite/cli/v29/ignite/pkg/cosmosaccount"
"github.com/ignite/cli/v29/ignite/pkg/errors"
"github.com/ignite/cli/v29/ignite/services/chain"
"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -75,7 +76,7 @@ func testnetInplace(cmd *cobra.Command, session *cliui.Session) error {
return err
}
ca, err := cosmosaccount.New(
cosmosaccount.WithKeyringBackend(cosmosaccount.KeyringBackend(keyringbankend)),
cosmosaccount.WithKeyringBackend(cosmosaccount.KeyringBackend(keyringBackend)),
cosmosaccount.WithHome(home),
)
if err != nil {
Expand All @@ -89,7 +90,7 @@ func testnetInplace(cmd *cobra.Command, session *cliui.Session) error {
)
for _, acc := range cfg.Accounts {
sdkAcc, err := ca.GetByName(acc.Name)
if !errors.As(err, &accErr) {
if errors.As(err, &accErr) {
sdkAcc, _, err = ca.Create(acc.Name)
}
if err != nil {
Expand Down Expand Up @@ -118,10 +119,10 @@ func testnetInplace(cmd *cobra.Command, session *cliui.Session) error {
return err
}

args := chain.InplaceArgs{
args := chain.InPlaceArgs{
NewChainID: chainID,
NewOperatorAddress: operatorAddress.String(),
AcountsToFund: accounts,
AccountsToFund: accounts,
}
return c.TestnetInPlace(cmd.Context(), args)
}
4 changes: 2 additions & 2 deletions ignite/services/chain/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ func (c Chain) Gentx(ctx context.Context, runner chaincmdrunner.Runner, v Valida
)
}

func (c Chain) InPlace(ctx context.Context, runner chaincmdrunner.Runner, args InplaceArgs) error {
func (c Chain) InPlace(ctx context.Context, runner chaincmdrunner.Runner, args InPlaceArgs) error {
err := runner.InPlace(ctx,
args.NewChainID,
args.NewOperatorAddress,
chaincmd.InPlaceWithPrvKey(args.PrvKeyValidator),
chaincmd.InPlaceWithAccountToFund(args.AcountsToFund),
chaincmd.InPlaceWithAccountToFund(args.AccountsToFund),
chaincmd.InPlaceWithSkipConfirmation(),
)
return err
Expand Down
4 changes: 2 additions & 2 deletions ignite/services/chain/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ type InPlaceArgs struct {
NewChainID string
NewOperatorAddress string
PrvKeyValidator string
AccountsToFund string
AccountsToFund string
}

func (c Chain) TestnetInPlace(ctx context.Context, args InplaceArgs) error {
func (c Chain) TestnetInPlace(ctx context.Context, args InPlaceArgs) error {
commands, err := c.Commands(ctx)
if err != nil {
return err
Expand Down

0 comments on commit 5d09ef5

Please sign in to comment.