Skip to content

Commit

Permalink
fix: add split route message to codec and interface registration (#5168)
Browse files Browse the repository at this point in the history
* fix: add split route message to codec and interface registration

* Apply suggestions from code review

* Apply suggestions from code review
  • Loading branch information
p0mvn authored May 15, 2023
1 parent f116d43 commit 8485634
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/poolmanager/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ import (
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
cdc.RegisterConcrete(&MsgSwapExactAmountIn{}, "osmosis/poolmanager/swap-exact-amount-in", nil)
cdc.RegisterConcrete(&MsgSwapExactAmountOut{}, "osmosis/poolmanager/swap-exact-amount-out", nil)
cdc.RegisterConcrete(&MsgSplitRouteSwapExactAmountIn{}, "osmosis/poolmanager/split-amount-in", nil)
cdc.RegisterConcrete(&MsgSplitRouteSwapExactAmountOut{}, "osmosis/poolmanager/split-amount-out", nil)
}

func RegisterInterfaces(registry types.InterfaceRegistry) {
registry.RegisterImplementations(
(*sdk.Msg)(nil),
&MsgSwapExactAmountIn{},
&MsgSwapExactAmountOut{},
&MsgSplitRouteSwapExactAmountIn{},
&MsgSplitRouteSwapExactAmountOut{},
)
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}
Expand Down

0 comments on commit 8485634

Please sign in to comment.