protofire / omen-exchange

Omen exchange
https://omen.eth.link/
GNU Affero General Public License v3.0
65 stars 77 forks source link

Update localHost RPC object to support multiple networks #2225

Open Mi-Lan opened 2 years ago

Mi-Lan commented 2 years ago

Is your feature request related to a problem? Please describe. Currently when we select alternative rpc via rpc modal it is saved for just that network on local storage and current object looks like this

Screenshot 2021-08-27 at 16 31 12

And the problem with that is that it will be overwritten if you save alternative rpc on different chain. So that means it only supports one chain.

Describe the solution you'd like We should expand localHost rpc object to be able to save alternative rpcs on multiple chains and not overwrite chain saved after we set it for different network.