Skip to content

Commit

Permalink
Merge and edit branch 'wip-starknet-snap' of github.com:MetaMask/meta…
Browse files Browse the repository at this point in the history
…mask-docs into wip-starknet-snap

# Conflicts:
#	wallet/how-to/use-non-evm-networks/starknet/create-a-simple-starknet-dapp.md
  • Loading branch information
alexandratran committed Sep 26, 2024
2 parents 07ad89e + 4a64f9b commit 0cadd60
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sequenceDiagram
mm->>Snap: Activate
Snap-->>mm: Activated
mm-->>get: Return SWO
get->>get: Create WalletAccount
get->>network: Create WalletAccount
get-->>dapp: Connection established
dapp->>get: Read blockchain data
Expand All @@ -58,9 +58,6 @@ sequenceDiagram
get->>network: Submit transaction
network-->>get: Transaction result
get-->>dapp: Transaction confirmation
mm->>get: Account/Network changed
get->>dapp: Notify change
```

The `get-starknet` library offers several features that improve how dapps interact with the Starknet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ A **Connect Wallet** button displays, which allows users to connect to MetaMask
</TabItem>
</Tabs>
The `get-starknet` library automatically handles detecting and connecting to MetaMask, and adding the Starknet Snap.
## Connect using `wallet_invokeSnap`
Alternatively, you can manage the Snap invocation manually.
Expand Down Expand Up @@ -392,3 +394,7 @@ const ConnectWallet = () => {
};
export default ConnectWallet;
```
:::note
See how to [troubleshoot](troubleshoot.md) connection issues when configuring your dapp using `wallet_invokeSnap`.
:::
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This guide addresses issues that might occur when connecting your dapp to the St
## Connection issues

When using `get-starknet`, the library automatically handles detecting and connecting to MetaMask,
and adding the Starknet Snap.
and adding the Starknet Snap.
If you're using `wallet_invokeSnap` directly, you might need to manage these processes manually.

### Detect MetaMask
Expand Down

0 comments on commit 0cadd60

Please sign in to comment.