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 a2c11e7 commit 5066035
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 5066035

Please sign in to comment.