Skip to content

Commit

Permalink
Update x/ecocredit/base/keeper/msg_create_project.go
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Weidner <[email protected]>
  • Loading branch information
aaronc and paul121 authored Jul 21, 2024
1 parent 1216bbd commit 26b1f22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/ecocredit/base/keeper/msg_create_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 26b1f22

Please sign in to comment.