Skip to content

Commit

Permalink
Fix networkClientId class field not being passed into `detectTokens…
Browse files Browse the repository at this point in the history
…` on `start()` and `#startPolling()` calls
  • Loading branch information
MajorLift committed Feb 21, 2024
1 parent e93cf7c commit d4581a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/assets-controllers/src/TokenDetectionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ export class TokenDetectionController extends StaticIntervalPollingController<
return;
}
this.#stopPolling();
await this.detectTokens();
await this.detectTokens({ networkClientId: this.#networkClientId });
this.#intervalId = setInterval(async () => {
await this.detectTokens();
await this.detectTokens({ networkClientId: this.#networkClientId });
}, this.getIntervalLength());
}

Expand Down

0 comments on commit d4581a9

Please sign in to comment.