Skip to content

Commit

Permalink
don't bypass config.TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
ngmachado committed May 16, 2024
1 parent fc41e96 commit b35a1e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/web3client/eventTracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ class EventTracker {

async processAgreementEvent (event) {
try {
// check if the token is in the list of tokens to be tracked
if(this.app.config.TOKENS && !this.app.config.TOKENS.includes(event.token)) {
return false;
}

if(event && !this.app.client.superToken.isSuperTokenRegistered(event.token)) {
this.app.logger.debug(`found a new token at ${event.token}`);
this.app.circularBuffer.push(event.token, null, "new token found");
Expand Down

0 comments on commit b35a1e1

Please sign in to comment.