wevm / viem

TypeScript Interface for Ethereum
https://viem.sh
Other
2.55k stars 843 forks source link

bug: createPublicClient not accept zkSync chain #2084

Closed savasadar closed 7 months ago

savasadar commented 7 months ago

Is there an existing issue for this?

Package Version

2.7.13

Current Behavior

When I using createPublicClient method, can't create an instance with zkSync chain. If I downgrade viem version to "viem": "^1.3.1" it accept zkSync as a chain.

Expected Behavior

It should be accept zkSync as a chain.

Steps To Reproduce

No response

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

No response

Anything else?

No response

jxom commented 7 months ago

Works for me: https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgYygUwIYzQBQK4BGANsMgMIloB2MANHABYwxhwC+cAZlBCHAOQA3YGhD8A3AChQkWIjgAvANYBlAJ5Vk7Ljz5CRIAPTIGGYFQDOEyZOQRL8ZJRpwAvCnRZchEuWcwACgRJOBRTcwAuRVUNZFoQuBgoDEtZGCimFgCASni2bPEgA

github-actions[bot] commented 7 months ago

Hello @savasadar.

Please provide a minimal reproduction using StackBlitz, TypeScript Playground (for type issues), or a separate minimal GitHub repository.

Minimal reproductions are required as they save us a lot of time reproducing your config & environment, and trying to reproduce your issue. See Why reproductions are required.

Please reopen this issue when a reproduction is added.

github-actions[bot] commented 5 months ago

This issue has been locked since it has been closed for more than 14 days.

If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Viem version. If you have any questions or comments you can create a new discussion thread.