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

fix: detect SCW correctly #1706

Merged
merged 4 commits into from
Jun 12, 2024
Merged

fix: detect SCW correctly #1706

merged 4 commits into from
Jun 12, 2024

Conversation

fionnachan
Copy link
Member

We should use the wallet's chain instead of the source chain for detecting if the wallet is a Smart Contract Wallet.

Copy link

vercel bot commented Jun 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
arbitrum-token-bridge ✅ Ready (Inspect) Visit Preview Jun 12, 2024 3:50pm

chrstph-dvx
chrstph-dvx previously approved these changes Jun 12, 2024
destinationProvider: isDepositMode
? childChainProvider
: parentChainProvider
destinationChainId: isDepositMode ? childChain.id : parentChain.id
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: could use destinationChain.id from useNetworksRelationship

@fionnachan fionnachan merged commit 0c4e81d into master Jun 12, 2024
24 checks passed
@fionnachan fionnachan deleted the detect-scw-correctly branch June 12, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants