Skip to content

Commit

Permalink
update tests from common and return empty list on empty query
Browse files Browse the repository at this point in the history
  • Loading branch information
EasterTheBunny committed May 15, 2024
1 parent 2ec1274 commit 7d4d24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/relay/evm/event_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (e *eventBinding) QueryKey(ctx context.Context, filter query.KeyFilter, lim

// no need to return an error. an empty list is fine
if len(logs) == 0 {
return nil, commontypes.ErrNotFound
return []commontypes.Sequence{}, nil
}

return e.decodeLogsIntoSequences(ctx, logs, sequenceDataType)
Expand Down

0 comments on commit 7d4d24a

Please sign in to comment.