rainbow-me / rainbowkit

The best way to connect a wallet 🌈 🧰
https://rainbowkit.com
MIT License
2.45k stars 667 forks source link

[bug] regression: `eth_getBalance` is requested when showBalance is disabled, again. #2177

Open einaralex opened 2 months ago

einaralex commented 2 months ago

Is there an existing issue for this?

RainbowKit Version

2.1.6

wagmi Version

2.12.0

Current Behavior

My dapp does not need the balance of the native currency and I've made sure that showBalance on the ConnectButton is off, but RainbowKitProvider still calls eth_getBalance every time it's rendered

This has been fixed before, See #1488

Expected Behavior

eth_getBalance should not be called and native balance should not be displayed in the account modal when showBalance is off.

Steps To Reproduce

No response

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response