softwarecurator / svelte-wagmi

71 stars 8 forks source link

Hardcoded eth-mainnet alchemy url prevents proper use of other chains #22

Open OmbraRD opened 2 months ago

OmbraRD commented 2 months ago

Problem: Using other chains or testnets will cause all kinds of issues like wrong balance and rpc errors on wallet interaction because of hardcoded alchemy mainnet endpoint: https://github.com/softwarecurator/svelte-wagmi/blob/37fa093c38e7ea857c07748dbdf309f9340c5821/src/lib/stores/wagmi.ts#L50

Solution: Add the correct endpoint for all supported Alchemy chains: https://docs.alchemy.com/docs/choosing-a-web3-network