Skip to content

Commit

Permalink
fix simapp test
Browse files Browse the repository at this point in the history
  • Loading branch information
sontrinh16 committed Jun 10, 2024
1 parent e68685a commit 49ef1e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions simapp/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (app SimApp) RegisterUpgradeHandlers() {
UpgradeName,
func(ctx context.Context, _ upgradetypes.Plan, fromVM appmodule.VersionMap) (appmodule.VersionMap, error) {
// sync accounts and auth module account number
err := app.syncAccoutnNumber(ctx)
err := app.syncAccountNumber(ctx)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -57,7 +57,7 @@ func (app SimApp) RegisterUpgradeHandlers() {
}
}

func (app SimApp) syncAccoutnNumber(ctx context.Context) error {
func (app SimApp) syncAccountNumber(ctx context.Context) error {
currentAccNum, err := app.AuthKeeper.RemoveLegacyAccountNumber(ctx)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion simapp/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestSyncAccountNumber(t *testing.T) {
require.NoError(t, err)
require.Equal(t, uint64(10), num)

app.syncAccoutnNumber(ctx)
app.syncAccountNumber(ctx)

// make sure the DB entry for this key is deleted
v, err = store.Get(bytesKey)
Expand Down

0 comments on commit 49ef1e3

Please sign in to comment.