Skip to content

Commit

Permalink
chore: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
khanti42 committed Dec 12, 2024
1 parent e9cf7f5 commit 893e19b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/get-starknet/src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ export class MetaMaskSnapWallet implements StarknetWindowObject {
} else {
throw new Error(`Unsupported event: ${String(event)}`);
}
if(this.#accountChangeHandlers.length + this.#networkChangeHandlers.length === 0){
this.#stopPolling();
}
}

/**
Expand Down

0 comments on commit 893e19b

Please sign in to comment.