WalletConnect / web3modal

A single Web3 provider solution for all Wallets
https://web3modal.com
Apache License 2.0
4.69k stars 1.3k forks source link

[bug] w3m-button doesn't show balance of different erc-20 tokens, used to work before #2058

Open NORcoin opened 2 months ago

NORcoin commented 2 months ago

Link to minimal reproducible example

https://codesandbox.io/p/live/d58e7e29-8627-4195-a615-8953cbc19e88

Summary

The documentation mention that this can be done by adding tokens to createweb3modal with network as ID and then token address, but this feature doesn't seem to be working anymore:

createWeb3Modal({ //... tokens: { 80001: { address: '0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97', image: 'token_image_url' //optional }, } })

this should be showing the balance of USDC on MATIC network but it doesn't work

List of related npm package versions

npm install @web3modal/ethers5 ethers@5.7.2

linear[bot] commented 2 months ago

W3M-97 [bug] w3m-button doesn't show balance of different erc-20 tokens, used to work before

aariya50 commented 2 weeks ago

any updates?