Skip to content

Comments

Chore: Refactor switch network logic#135

Merged
quetool merged 1 commit intomasterfrom
bugfix/refactor_switch_network_logic
Jun 5, 2024
Merged

Chore: Refactor switch network logic#135
quetool merged 1 commit intomasterfrom
bugfix/refactor_switch_network_logic

Conversation

@quetool
Copy link
Contributor

@quetool quetool commented Jun 5, 2024

UX/UI shouldn't expect for chainChanged event to arrive to modify its state, rather it should just check whether Future<void> requestSwitchToChain(W3MChainInfo newChain) throws an error or not.

If no error is thrown and request completes successfully then Dapp should assume the switch was successful regardless of the chainChanged arriving or not.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 5, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@quetool quetool merged commit fb09cbf into master Jun 5, 2024
@quetool quetool deleted the bugfix/refactor_switch_network_logic branch June 5, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant