Skip to content

Commit 8ad23b3

Browse files
chore: removed active chain check when switching network
1 parent 1afe1ee commit 8ad23b3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/appkit/src/AppKit.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -634,12 +634,6 @@ export class AppKit {
634634
const namespace = adapter.getSupportedNamespace();
635635
const chain = `${namespace}:${chainId}` as CaipNetworkId;
636636

637-
const activeNetwork = ConnectionsController.getActiveNetworkId(namespace);
638-
if (activeNetwork === chain) {
639-
// No need to update the active network
640-
return;
641-
}
642-
643637
ConnectionsController.setActiveNetwork(namespace, chain);
644638

645639
const connection = ConnectionsController.state.connections.get(namespace);

0 commit comments

Comments
 (0)