From 555f52701c56c7d8a14bf6a1ed21fc1215d4f3ab Mon Sep 17 00:00:00 2001 From: dylanhuang Date: Fri, 5 Jan 2024 16:22:15 +0800 Subject: [PATCH] fix: disable ClaimMsg after FinalSunsetFork (#366) --- x/oracle/handler.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x/oracle/handler.go b/x/oracle/handler.go index 6deb8ca7d..a48e91784 100644 --- a/x/oracle/handler.go +++ b/x/oracle/handler.go @@ -17,6 +17,9 @@ func NewHandler(keeper Keeper) sdk.Handler { return func(ctx sdk.Context, msg sdk.Msg) sdk.Result { switch msg := msg.(type) { case types.ClaimMsg: + if sdk.IsUpgrade(sdk.FinalSunsetFork) { + return sdk.ErrMsgNotSupported("").Result() + } return handleClaimMsg(ctx, keeper, msg) default: errMsg := "Unrecognized oracle msg type"