Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
zale144 committed Sep 12, 2024
1 parent 32ad90c commit 345adaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x/rollapp/keeper/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ func (k Keeper) GetRollappApps(ctx sdk.Context, rollappId string) (list []*types
return list
}

// GetNextAppID increments and returns the next available App ID for a specific Rollapp.
func (k Keeper) GetNextAppID(ctx sdk.Context, rollappID string) uint64 {
// GenerateNextAppID increments and returns the next available App ID for a specific Rollapp.
func (k Keeper) GenerateNextAppID(ctx sdk.Context, rollappID string) uint64 {
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.AppSequenceKeyPrefix))
sequenceKey := types.AppSequenceKey(rollappID)

Expand Down
2 changes: 1 addition & 1 deletion x/rollapp/keeper/msg_server_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (k msgServer) AddApp(goCtx context.Context, msg *types.MsgAddApp) (*types.M
}

app := msg.GetApp()
app.Id = k.GetNextAppID(ctx, app.RollappId)
app.Id = k.GenerateNextAppID(ctx, app.RollappId)

k.SetApp(ctx, app)

Expand Down

0 comments on commit 345adaa

Please sign in to comment.