Skip to content

isAddress function causes memory leak on iOS 18+ #2911

Open
@memoyil

Description

Check existing issues

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions