Skip to content

Commit

Permalink
fix: check unlock timelock error
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Aug 28, 2023
1 parent a679481 commit 82ef36d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions plugins/dex/order/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ func NewHandler(dexKeeper *DexKeeper) sdk.Handler {
}
return handleNewOrder(ctx, dexKeeper, msg)
case CancelOrderMsg:
if sdk.IsUpgrade(sdk.BEPXXX) {
return sdk.ErrMsgNotSupported("").Result()
}
return handleCancelOrder(ctx, dexKeeper, msg)
default:
errMsg := fmt.Sprintf("Unrecognized dex msg type: %v", reflect.TypeOf(msg).Name())
Expand Down
6 changes: 5 additions & 1 deletion plugins/tokens/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ func EndBlocker(ctx sdk.Context, timelockKeeper timelock.Keeper, swapKeeper swap
logger.Error("ParseKeyRecord error", "error", err)
continue
}
timelockKeeper.TimeUnlock(ctx, addr, id)
err = timelockKeeper.TimeUnlock(ctx, addr, id)
if err != nil {
logger.Error("TimeUnlock error", "error", err)
continue
}
i++
}

Expand Down

0 comments on commit 82ef36d

Please sign in to comment.