From 881514dbc24d5f653d0ff250bea9f10675bf98d7 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 15 May 2023 16:53:55 -0400 Subject: [PATCH] fix: add split route message to codec and interface registration (#5168) * fix: add split route message to codec and interface registration * Apply suggestions from code review * Apply suggestions from code review --- x/poolmanager/types/codec.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x/poolmanager/types/codec.go b/x/poolmanager/types/codec.go index 20372414759..f2ff02a648d 100644 --- a/x/poolmanager/types/codec.go +++ b/x/poolmanager/types/codec.go @@ -13,6 +13,8 @@ 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) { @@ -20,6 +22,8 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { (*sdk.Msg)(nil), &MsgSwapExactAmountIn{}, &MsgSwapExactAmountOut{}, + &MsgSplitRouteSwapExactAmountIn{}, + &MsgSplitRouteSwapExactAmountOut{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) }