Skip to content

Commit

Permalink
Update this.#chainId on networkDidChange event
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Feb 23, 2024
1 parent 38b1ee0 commit 727c81d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ export class TokenDetectionController extends StaticIntervalPollingController<

const { chainId: newChainId } =
this.#getCorrectChainIdAndNetworkClientId(selectedNetworkClientId);
this.#chainId = newChainId;
this.#isDetectionEnabledForNetwork =
isTokenDetectionSupportedForNetwork(newChainId);

Expand Down

0 comments on commit 727c81d

Please sign in to comment.