From e5e950e6f32e6ca039327a02e4ff742402153b87 Mon Sep 17 00:00:00 2001 From: Agent Smith Date: Sun, 22 May 2022 19:20:14 -0400 Subject: [PATCH] add msg handler --- x/perp/handler.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x/perp/handler.go b/x/perp/handler.go index 0e4fbe408..9f19b78d8 100644 --- a/x/perp/handler.go +++ b/x/perp/handler.go @@ -31,6 +31,9 @@ func NewHandler(k keeper.Keeper) sdk.Handler { case *types.MsgAddMargin: res, err := msgServer.AddMargin(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) + case *types.MsgOpenPosition: + res, err := msgServer.OpenPosition(sdk.WrapSDKContext(ctx), msg) + return sdk.WrapServiceResult(ctx, res, err) default: errMsg := fmt.Sprintf( "unrecognized %s message type: %T", types.ModuleName, msg)