anyswap / anyswap-crosschain

GNU General Public License v3.0
33 stars 64 forks source link

Fix select network and add token requests #11

Open bkbooth opened 2 years ago

bkbooth commented 2 years ago

If Ethereum provider is a class, spreading it onto a new object won't copy methods to the new object

Fixes #10

bkbooth commented 2 years ago

I've tested this fix locally and switching networks via the AnySwap UI works as expected with the injected provider from our wallet, and still works as expected with MetaMask.