From 4c61c98412186fcf50f62401c24a051952bc6019 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Sun, 24 Dec 2023 23:28:19 +0700 Subject: [PATCH] fix issue in defensive tests, yay for testing --- x/participationrewards/keeper/callbacks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/participationrewards/keeper/callbacks.go b/x/participationrewards/keeper/callbacks.go index c65cb5496..9014703bd 100644 --- a/x/participationrewards/keeper/callbacks.go +++ b/x/participationrewards/keeper/callbacks.go @@ -49,7 +49,7 @@ func (k *Keeper) CallbackHandler() Callbacks { // Call calls callback handler. func (c Callbacks) Call(ctx sdk.Context, id string, args []byte, query icqtypes.Query) error { - if c.Has(id) { + if !c.Has(id) { return fmt.Errorf("callback %s not found", id) } return c.callbacks[id](ctx, c.k, args, query)