From 26b1f220b3e9de6b2ce6977b4dc16d1129bc479d Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Sun, 21 Jul 2024 21:53:58 +0200 Subject: [PATCH] Update x/ecocredit/base/keeper/msg_create_project.go Co-authored-by: Paul Weidner --- x/ecocredit/base/keeper/msg_create_project.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x/ecocredit/base/keeper/msg_create_project.go b/x/ecocredit/base/keeper/msg_create_project.go index c7f8daec74..9a9ee0c9ce 100644 --- a/x/ecocredit/base/keeper/msg_create_project.go +++ b/x/ecocredit/base/keeper/msg_create_project.go @@ -79,8 +79,7 @@ func (k Keeper) CreateProject(ctx context.Context, req *types.MsgCreateProject) }, nil } -// createNewProject generates a projectID when no projectID was given for CreateProject. -// The ID is generated by concatenating the classID and a sequence number. +// createNewProject creates a new project when no class was given for CreateProject. func (k Keeper) createNewProject(ctx context.Context) (*api.Project, string, error) { newProject := &api.Project{} id, err := k.stateStore.ProjectTable().InsertReturningID(ctx, newProject)