ant-design / ant-design-web3

🥳 Efficient react components for building dapps easier | Connect crypto wallets and more Web3 UI components | Web3 icons | Supports Ethereum, Solana, Bitcoin, TON, Sui and others.
https://web3.ant.design
MIT License
842 stars 142 forks source link

[Bug] incorrect console log when use WagmiWeb3ConfigProvider #1006

Open LCJove opened 3 months ago

LCJove commented 3 months ago

What happens?

使用 WagmiWeb3ConfigProvider,在配置中使用base链的配置之后,控制台会报错 Can not find chain 8453, you should config it in WagmiWeb3ConfigProvider 'chains'. 但其实wagmi是支持base链的。 虽然请求还是可以正常发起被处理 目前发现base和 baseSepolia 会报错,其他的没有尝试过

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

可以看仓库里面的meetup2024相关的代码,或者访问https://web3.ant.design/meetup2024

Context

LCJove commented 3 months ago

看了一下代码,应该是 WagmiWeb3ConfigProvider 这里取chains的时候,是直接从props中取的,但是在设置的时候是在config中设置了,导致判断为空报错

LCJove commented 3 months ago

和 #919 相关

gin-lsl commented 3 months ago

所以这个图标才没加载出来吗 image