Skip to content

Remove ICS4Wrapper from keepers and pass it as argument to IBC middleware constructor #3371

@crodriguezvega

Description

@crodriguezvega

Improvement for IBC middleware pipelining as suggested by @damiannolan:

func NewIBCMiddleware(app porttypes.IBCModule, k keeper.Keeper, next porttypes.ICS4Wrapper) IBCMiddleware {
  return IBCMiddleware{
    app:    app,
    keeper: k,
    next:   next,
  }
}
  • Replace in the implementation of the ICS4 wrapper interface in 29-fee and 27-controller the usage of keeper for next.

Metadata

Metadata

Assignees

Labels

30-middlewarechange: api breakingIssues or PRs that break Go API (need to be release in a new major version)type: refactorArchitecture, code or CI improvements that may or may not tackle technical debt.

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions