Open
Description
Check existing issues
- I checked there isn't already an issue for the bug I encountered.
Viem Version
2.21.22
Current Behavior
The isAddress function in the viem library appears to cause a memory leak on devices running iOS 18 or later. When repeatedly calling isAddress in an iOS environment (version 18+), memory consumption steadily increases and is not released, leading to degraded app performance and eventually crashing after prolonged usage.
Expected Behavior
No response
Steps To Reproduce
Use the isAddress function to validate addresses in a loop (having more items than 8k) or with frequent calls in an iOS app (version 18+).
Platform: iOS 18+
Browser: Any
App: React-NextJs Web app
Link to Minimal Reproducible Example
No response
Anything else?
No response