Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #147 - error in blockExplorers.default.url type: array to string #148

Closed
wants to merge 1 commit into from

Conversation

W3stside
Copy link

Closes #147

Motivation and Context

Broken chain switching as derived chain was parsed incorrectly with passed in types. See #147

Screenshots

Error in console BEFORE change:
image
image

blockExplorersUrl: "h" is because of the previous wrong code:

chain.blockExplorers?.default.url[0]

when url => e.g "https://sepolia-infura.io/api/v2" it would grab first string character at index 0equalling"h"`

- previously this was causing urls to be parsed as single character strings
@yashovardhan
Copy link
Member

Thanks a lot for your PR, I have added the same change in my latest update to the connector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Connector incompatible with Wagmi/Viem V2, even with createConnector
2 participants