From e8f3a60c7cc515d6034ecfb7fd0c5e0cf3454f1c Mon Sep 17 00:00:00 2001 From: j75689 Date: Fri, 5 Jan 2024 16:19:26 +0800 Subject: [PATCH] fix: disable ClaimMsg after FinalSunsetFork --- 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"