Skip to content

pkg/cosmosanalysis: support discovery of modules defined in a variable #2818

@jeronimoalbi

Description

@jeronimoalbi

Description
The cosmosanalysis package should be able to discover registered modules also when the list of modules is defined as a variable.

This behaviour is desired to better support code generation in different blockchain applications.

Solution

Change the module discovery to recognise when the list of modules is defined as a local variable:

module.NewBasicManager(appModules...)

Or a variable defined in a different package:

module.NewBasicManager(keepers.AppModules...)

Metadata

Metadata

Assignees

Labels

type:newTo implement new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions