Skip to content

Commit

Permalink
fix issue in defensive tests, yay for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Dec 24, 2023
1 parent 39b25ed commit 4c61c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/participationrewards/keeper/callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4c61c98

Please sign in to comment.