From d4116b344f1d996d3325a39ad02619289a4b4dba Mon Sep 17 00:00:00 2001 From: j75689 Date: Wed, 27 Mar 2024 12:28:34 +0800 Subject: [PATCH] fix: disable create/edit validator --- x/stake/handler.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/x/stake/handler.go b/x/stake/handler.go index 4b2cada72..dddc64f10 100644 --- a/x/stake/handler.go +++ b/x/stake/handler.go @@ -40,13 +40,17 @@ func NewHandler(k keeper.Keeper, govKeeper gov.Keeper) sdk.Handler { return handleMsgUndelegate(ctx, msg, k) // case MsgSideChain case types.MsgCreateSideChainValidator: - return handleMsgCreateSideChainValidator(ctx, msg, k) + return sdk.ErrMsgNotSupported("Temporarily unavailable").Result() + // return handleMsgCreateSideChainValidator(ctx, msg, k) case types.MsgEditSideChainValidator: - return handleMsgEditSideChainValidator(ctx, msg, k) + return sdk.ErrMsgNotSupported("Temporarily unavailable").Result() + // return handleMsgEditSideChainValidator(ctx, msg, k) case types.MsgCreateSideChainValidatorWithVoteAddr: - return handleMsgCreateSideChainValidatorWithVoteAddr(ctx, msg, k) + return sdk.ErrMsgNotSupported("Temporarily unavailable").Result() + // return handleMsgCreateSideChainValidatorWithVoteAddr(ctx, msg, k) case types.MsgEditSideChainValidatorWithVoteAddr: - return handleMsgEditSideChainValidatorWithVoteAddr(ctx, msg, k) + return sdk.ErrMsgNotSupported("Temporarily unavailable").Result() + // return handleMsgEditSideChainValidatorWithVoteAddr(ctx, msg, k) case types.MsgSideChainDelegate: return handleMsgSideChainDelegate(ctx, msg, k) case types.MsgSideChainRedelegate: