Skip to content

fix: Scaffold an IBC module in a non-Starport chain #1319

@fadeev

Description

@fadeev

Right now starport module create foo --ibc in a chain like Gaia returns:

💬 To enable scaffolding of IBC modules, remove these lines from app/app.go:

ibcRouter := porttypes.NewRouter()
ibcRouter.AddRoute(ibctransfertypes.ModuleName, transferModule)
app.IBCKeeper.SetRouter(ibcRouter)

💬 Then, find the following line:

// this line is used by starport scaffolding # stargate/app/keeperDefinition

💬 Finally, add this block of code below:
ibcRouter := porttypes.NewRouter()
ibcRouter.AddRoute(ibctransfertypes.ModuleName, transferModule)
// this line is used by starport scaffolding # ibc/app/router
app.IBCKeeper.SetRouter(ibcRouter)

app.go doesn't contain the necessary placeholder to generate an IBC module

Instead, it should create x/foo and complain about placeholders.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions