Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
🐛 Fix events query with transactionID
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersubudhi committed Oct 28, 2023
1 parent 372012c commit c730a7f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ const getEvents = async params => {
const topics = topic.split(',');
const numUniqueTopics = dropDuplicates(topics).length;
topics.forEach(t => {
if (
if (t.length === LENGTH_ID) {
topics.push(EVENT_TOPIC_PREFIX.TX_ID.concat(t), EVENT_TOPIC_PREFIX.CCM_ID.concat(t));
} else if (
t.startsWith(EVENT_TOPIC_PREFIX.TX_ID) &&
t.length === EVENT_TOPIC_PREFIX.TX_ID.length + LENGTH_ID
) {
Expand Down

0 comments on commit c730a7f

Please sign in to comment.