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

Updating initWallet to use connected network configs if they exist #631

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

corbanbrook
Copy link
Contributor

@corbanbrook corbanbrook commented Dec 17, 2024

Previously dapp side would just use the default network config which pointed to production rpcUrls, etc. So there was a disconnect between the what the specified wallet was using and the dapp, so a dev project access key that would work on wallet side would not work on the dapp side production services.

This corrects it by making sure to merge in the connected sessions network config when returning providers

@corbanbrook corbanbrook requested a review from a team as a code owner December 17, 2024 17:24
Copy link
Member

@Agusx1211 Agusx1211 left a comment

Choose a reason for hiding this comment

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

LGTM

@corbanbrook corbanbrook merged commit 6c64351 into master Dec 17, 2024
22 checks passed
@corbanbrook corbanbrook deleted the fix-init-wallet-network-configs branch December 17, 2024 18:10
if (network.rpcUrl.includes(projectAccessKey)) {
return network
}

// this will probably break non-sequence RPC provider URLs.
// XXX: This will probably break non-sequence RPC provider URLs.
Copy link
Member

Choose a reason for hiding this comment

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

lets just search for "sequence.app" in the url then, and skip adding this if thats the case..?

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.

3 participants