fix: MMASSETS-626-new-rpc-no-confirmation#13883
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
e2a2af5 to
d2ca9e2
Compare
147e418 to
12b59ce
Compare
|
|
|
I'm a bit confused in the video you've linked in the description. There appear to be two modals that pop up, the first one suggests you're adding the network for the first time, and then the second one suggests your updating the default rpcUrl for an existing network configuration. It seems like it should just be the second modal that shows? |
I managed to paste the wrong video. I've updated it with one showing the "Update XXX" modal asking for confirmation. The first time the modal shows, it's adding the network from the extension list of networks. The second one, shows how a dapp requesting to update the existing network with a new rpc requests permissions. Before this change, no permission was being asked to update the network with a new rpc. |
|
Ok nice! Yes the new video looks correct to me! |
adonesky1
left a comment
There was a problem hiding this comment.
Didn't manually test, but code looks pretty good. Probably could be cleaned up/refactored a bit but won't block on that!



Description
When a dapp sends a
wallet_addEthereumChainrequest for an existing network with a different RPC, there should be a confirmation dialog. It currently updates the network without asking for any sort of permission from the user.Related issues
Fixes: #12850
Manual testing steps
Screenshots/Recordings
Before
Check bug report
After
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2025-03-07.at.17.02.02.mp4
Pre-merge author checklist
Pre-merge reviewer checklist