Skip to content

Commit

Permalink
add msg handler
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentSmithMatrix committed May 22, 2022
1 parent f490773 commit e5e950e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/perp/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e5e950e

Please sign in to comment.