Giveth / giveth-dapps-v2

This project is the aggregation of GIVeconomy and Giveth.io DApps in a single repo
https://staging.giveth.io
GNU General Public License v3.0
63 stars 33 forks source link

There is a problem in switch network when my network is set on solana #4768

Open maryjaf opened 1 month ago

maryjaf commented 1 month ago
          There is a problem in switch network but I think it isn't exactly related to this issue and changes, please take a look on below screen records 

https://github.com/user-attachments/assets/5a650432-4180-486c-9653-ddee3a11ece6

https://github.com/user-attachments/assets/4747cd1a-f064-4fab-9e02-e17dcde44838

@MoeNick @RamRamez cc: @divine-comedian I think it's related to the change had been made by Mateo before

Originally posted by @maryjaf in https://github.com/Giveth/giveth-dapps-v2/issues/4731#issuecomment-2370326334

maryjaf commented 1 month ago

production :

https://github.com/user-attachments/assets/5cc3fd25-f5f3-4cd2-adf5-660c0cee821f

@mateodaza @divine-comedian

divine-comedian commented 1 month ago

Looks like when you are switching from solana to a new EVM network (not the one you were previously connected to) MM is handling only the website connection and not following up with a switch network request.

mateodaza commented 1 month ago

Been pretty hard to solve this using @web3modal/wagmi/react directly so built a workaround

leaving a PR here

cc: @divine-comedian @maryjaf @MohammadPCh @RamRamez

maryjaf commented 1 month ago

Thanks @mateodaza please let me know when it is ready for testing on stg