Skip to content

Commit 474701c

Browse files
mergify[bot]JeancarloBarrios
authored andcommitted
feat: add MsgServiceRouter to Baseapp (and runtime's provideCodecs) (backport cosmos#12168) (cosmos#13475)
1 parent d4f5c29 commit 474701c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
5555

5656
### Features
5757

58+
* (baseapp) [#12168](https://github.com/cosmos/cosmos-sdk/pull/12168) Add `SetMsgServiceRouter` to `BaseApp`.
5859
* (cli) [#13207](https://github.com/cosmos/cosmos-sdk/pull/13207) Reduce user's password prompts when calling keyring `List()` function.
5960
* (cli) [#13353](https://github.com/cosmos/cosmos-sdk/pull/13353) Add `tx group draft-proposal` command for generating group proposal JSONs (skeleton).
6061
* (cli) [#13304](https://github.com/cosmos/cosmos-sdk/pull/13304) Add `tx gov draft-proposal` command for generating proposal JSONs (skeleton).

baseapp/baseapp.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,10 @@ func (app *BaseApp) Trace() bool {
261261
// MsgServiceRouter returns the MsgServiceRouter of a BaseApp.
262262
func (app *BaseApp) MsgServiceRouter() *MsgServiceRouter { return app.msgServiceRouter }
263263

264-
// GRPCQueryRouter returns the GRPCQueryRouter of a BaseApp.
265-
func (app *BaseApp) GRPCQueryRouter() *GRPCQueryRouter { return app.grpcQueryRouter }
264+
// SetMsgServiceRouter sets the MsgServiceRouter of a BaseApp.
265+
func (app *BaseApp) SetMsgServiceRouter(msgServiceRouter *MsgServiceRouter) {
266+
app.msgServiceRouter = msgServiceRouter
267+
}
266268

267269
// MountStores mounts all IAVL or DB stores to the provided keys in the BaseApp
268270
// multistore.

0 commit comments

Comments
 (0)