Skip to content

Commit

Permalink
docs: fix wrong mapping of JSON RPC method for watchAsset (#934)
Browse files Browse the repository at this point in the history
fix: wrong mapping of JSON RPC method for watchAsset

The docs stated the JSON RPC method was `eth_switchEthereumChain` but it should be `wallet_watchAsset`.
  • Loading branch information
sebasyii authored Jul 25, 2023
1 parent 581ca3f commit a01d42f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/actions/wallet/watchAsset.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ const success = await walletClient.watchAsset({

## JSON-RPC Methods

[`eth_switchEthereumChain`](https://eips.ethereum.org/EIPS/eip-747)
[`wallet_watchAsset`](https://eips.ethereum.org/EIPS/eip-747)

1 comment on commit a01d42f

@vercel
Copy link

@vercel vercel bot commented on a01d42f Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.