From 517b15238a0ded7b3588e3be137df697e383b6b6 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 6 Jul 2023 12:03:49 -0500 Subject: [PATCH] fix MIP-1 example typo --- MIPs/mip-1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MIPs/mip-1.md b/MIPs/mip-1.md index 02f01a8..561468d 100644 --- a/MIPs/mip-1.md +++ b/MIPs/mip-1.md @@ -22,7 +22,7 @@ By allowing users to add and manage NFTs directly within MetaMask, we can better # Usage Example ``` // Request to add an ERC-721 token (NFT) -ethereum.sendAsync({ +ethereum.request({ method: 'wallet_watchAsset', params: { type: 'ERC721', @@ -34,7 +34,7 @@ ethereum.sendAsync({ }); // Request to add an ERC-1155 token (NFT) -ethereum.sendAsync({ +ethereum.request({ method: 'wallet_watchAsset', params: { type: 'ERC1155', @@ -65,7 +65,7 @@ Introduce an optional `tokenId` parameter to the existing options object. This p The updated method signature will be as follows: ``` -ethereum.sendAsync({ +ethereum.request({ method: 'wallet_watchAsset', params: { type: 'ERC20' | 'ERC721' | 'ERC1155',