Skip to content

Commit

Permalink
add missing set order functions for ica (cosmos#2740) (cosmos#2756)
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Rodriguez <crodveg@gmail.com>
(cherry picked from commit f54143e)

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
  • Loading branch information
2 people authored and ulbqb committed Jul 27, 2023
1 parent 5ecb3dc commit 255d676
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
16 changes: 15 additions & 1 deletion docs/apps/interchain-accounts/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,22 @@ app.moduleManager = module.NewManager(

...

// Add fee middleware to begin blocker logic
app.moduleManager.SetOrderBeginBlockers(
...
icatypes.ModuleName,
...
)

// Add fee middleware to end blocker logic
app.moduleManager.SetOrderEndBlockers(
...
icatypes.ModuleName,
...
)

// Add Interchain Accounts module InitGenesis logic
app.mm.SetOrderInitGenesis(
app.moduleManager.SetOrderInitGenesis(
...
icatypes.ModuleName,
...
Expand Down
6 changes: 3 additions & 3 deletions docs/middleware/ics29-fee/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@ app.moduleManager = module.NewManager(
...
// Add fee middleware to begin blocker logic
app.mm.SetOrderBeginBlockers(
app.moduleManager.SetOrderBeginBlockers(
...
ibcfeetypes.ModuleName,
...
)
// Add fee middleware to end blocker logic
app.mm.SetOrderEndBlockers(
app.moduleManager.SetOrderEndBlockers(
...
ibcfeetypes.ModuleName,
...
)
// Add fee middleware to init genesis logic
app.mm.SetOrderInitGenesis(
app.moduleManager.SetOrderInitGenesis(
...
ibcfeetypes.ModuleName,
...
Expand Down

0 comments on commit 255d676

Please sign in to comment.