Skip to content

Commit

Permalink
Type networkClientId as NetworkClientId
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Feb 20, 2024
1 parent 5c2e887 commit 05be5d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/assets-controllers/src/TokenDetectionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export class TokenDetectionController extends StaticIntervalPollingController<
}

async _executePoll(
networkClientId: string,
networkClientId: NetworkClientId,
options: { address: string },
): Promise<void> {
if (!this.isActive) {
Expand All @@ -453,6 +453,9 @@ export class TokenDetectionController extends StaticIntervalPollingController<
async #restartTokenDetection({
selectedAddress,
networkClientId,
}: {
selectedAddress?: string;
networkClientId?: NetworkClientId;
} = {}): Promise<void> {
await this.detectTokens({
networkClientId,
Expand Down

0 comments on commit 05be5d2

Please sign in to comment.