Skip to content

Commit

Permalink
fix: disable ClaimMsg after FinalSunsetFork
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Jan 5, 2024
1 parent 9e0aa25 commit e8f3a60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/oracle/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e8f3a60

Please sign in to comment.