Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: khanti42 <[email protected]>
  • Loading branch information
joaniefromtheblock and khanti42 authored Sep 24, 2024
1 parent c5f1762 commit 333cef5
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions wallet/how-to/use-non-evm-networks/starknet/troubleshoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,10 @@ try {

Guide users through the process of approving the Snap in MetaMask. If they deny the connection, provide a retry option.

### Stale wallet data

If the wallet address or account information doesn't update after reconnection, always listen for account or network changes and handle them appropriately. Use event listeners:

```javascript
ethereum.on('accountsChanged', (accounts) => {
// Handle account change
});
ethereum.on('chainChanged', (chainId) => {
// Handle network change
});
```

### Snap ID error

Ensure you're using the correct Snap ID for the StarkNet Snap. Incorrect IDs will result in failed connections.
The Starknet Snap ID is the name of the npm package of the snap: `@consensys/starknet-snap`.


## Best practices
Expand Down

0 comments on commit 333cef5

Please sign in to comment.