Skip to content

Commit

Permalink
changelog, add detail err log
Browse files Browse the repository at this point in the history
  • Loading branch information
sontrinh16 committed Jun 11, 2024
1 parent 053ae26 commit eae8154
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i

* (simapp) [#19146](https://github.com/cosmos/cosmos-sdk/pull/19146) Replace `--v` CLI option with `--validator-count`/`-n`.
* (module) [#19370](https://github.com/cosmos/cosmos-sdk/pull/19370) Deprecate `module.Configurator`, use `appmodule.HasMigrations` and `appmodule.HasServices` instead from Core API.
* (x/auth) [#20531](https://github.com/cosmos/cosmos-sdk/pull/20531) Deprecate auth keeper `NextAccountNumber`, use `keeper.AccountsModKeeper.NextAccountNumber` instead.

## [v0.50.7](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.7) - 2024-06-04

Expand Down
4 changes: 2 additions & 2 deletions x/auth/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,11 @@ func (ak AccountKeeper) NonAtomicMsgsExec(ctx context.Context, signer sdk.AccAdd
// MigrateAccountNumberUnsafe migrates auth's account number to accounts's account number
// and delete store entry for auth legacy GlobalAccountNumberKey.
//
// Should only use in an upgrade handler for migrate process.
// Should only use in an upgrade handler for migrating account number.
func (ak AccountKeeper) MigrateAccountNumberUnsafe(ctx context.Context) error {
currentAccNum, err := ak.RemoveLegacyAccountNumber(ctx)
if err != nil {
return err
return fmt.Errorf("failed to migrate account number: %w", err)
}

err = ak.AccountsModKeeper.InitAccountNumberSeqUnsafe(ctx, currentAccNum)
Expand Down

0 comments on commit eae8154

Please sign in to comment.