Skip to content

Commit

Permalink
Remove reference to this.#chainId from `#getCorrectChainIdAndNetwor…
Browse files Browse the repository at this point in the history
…kClientId`, so that the method only relies on the network-controller, not the cached `this.#chainId` that could be stale
  • Loading branch information
MajorLift committed Feb 23, 2024
1 parent 727c81d commit eccf79c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export class TokenDetectionController extends StaticIntervalPollingController<
);
const newNetworkClientId = this.messagingSystem.call(
'NetworkController:findNetworkClientIdByChainId',
this.#chainId,
chainId,
);
return {
chainId,
Expand Down

0 comments on commit eccf79c

Please sign in to comment.