From 8485634d76dc9122f5462716071f0e4d6bb38bed 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) }