Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialize SCWStateManager with dapp chainIds #1134

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

fan-zhang-sv
Copy link
Contributor

@fan-zhang-sv fan-zhang-sv commented Mar 15, 2024

Summary

We follow the app's chainIds param to set the default network for SDK, but we missed out SCWStateManager, so it's always sending requests on mainnet. This PR updated SCWStateManager to take chainIds for fallback

How did you test your changes?

Manually

@@ -41,7 +41,7 @@ export class SCWStateManager {
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit would place updateListeners after _activeChain and _accounts are set

@fan-zhang-sv fan-zhang-sv merged commit baa39e6 into master Mar 18, 2024
9 checks passed
@fan-zhang-sv fan-zhang-sv deleted the felix/state-manager-chainIds branch March 18, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants