Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: wallet_watchAsset API should support ERC721 or ERC1155 standard tokens #1112

Open
quiet-node opened this issue Feb 2, 2024 · 0 comments
Labels
type: enhancement New feature or request

Comments

@quiet-node
Copy link

Is your feature request related to a problem? Please describe.

When attempt to add NFTs using wallet_watchAsset API, Coinbase Wallet will provide this error

Error: could not coalesce error (error={ "code": -32602, "message": "Asset of type 'ERC721' not supported" }, 
payload={ "id": 5, "jsonrpc": "2.0", "method": "wallet_watchAsset", "params": { "options": { "address": "0x000000000000000000000000000000000022b58e", "image": "data:image/svg+xml;utf8,
<svg id=\"Layer_1\" data-name=\"Layer 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\">
<path d=\"M20 0a20 20 0 1 0 20 20A20 20 0 0 0 20 0\" fill=\"black\"></path><path d=\"M28.13 28.65h-
2.54v-5.4H14.41v5.4h-2.54V11.14h2.54v5.27h11.18v-5.27h2.54zm-13.6-7.42h11.18v-2.79H14.53z\" fill=\"white\">
</path></svg>", "symbol": "YZFR3", "tokenId": "2" }, "type": "ERC721" } }, code=UNKNOWN_ERROR, version=6.10.0)

Describe the solution you'd like

wallet_watchAsset should support ERC721 and ERC1155 tokens https://github.com/MetaMask/metamask-improvement-proposals/blob/main/MIPs/mip-1.md

Describe alternatives you've considered

No response

Additional context

No response

@quiet-node quiet-node added the type: enhancement New feature or request label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Development

No branches or pull requests

1 participant