Web3Auth / web3auth-wagmi-connector

Web3Auth connector for wagmi
25 stars 24 forks source link

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

Closed W3stside closed 1 month ago

W3stside commented 2 months ago

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 index0equalling"h"`

yashovardhan commented 1 month ago

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