Skip to content

Commit

Permalink
add handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed May 2, 2024
1 parent a2011e8 commit 0b21179
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/cronos/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ func NewHandler(k keeper.Keeper) sdk.Handler {
case *types.MsgTurnBridge:
res, err := msgServer.TurnBridge(sdk.WrapSDKContext(ctx), msg)
return sdk.WrapServiceResult(ctx, res, err)
case *types.MsgStoreBlockList:
res, err := msgServer.StoreBlockList(sdk.WrapSDKContext(ctx), msg)
return sdk.WrapServiceResult(ctx, res, err)
default:
errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg)
return nil, errors.Wrap(sdkerrors.ErrUnknownRequest, errMsg)
Expand Down

0 comments on commit 0b21179

Please sign in to comment.